Questions tagged [visualforce-component]

Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

Filter by
Sorted by
Tagged with
-2
votes
0answers
9 views

Create custom setting “ValidationSetting“. This custom setting should be used to activate/deactivate any Validation Rule from your org [closed]

Create custom setting “ValidationSetting“. This custom setting should be used to activate/deactivate any Validation Rule from your org.
0
votes
1answer
35 views

VisualForce Page - Apex:Repeat & Map not showing any values

I have problem showing my map value to the visualforce page, in my controller I populate the maps and create below method public Map<String, Decimal> getmapTargetCurrentMonth(){ return ...
0
votes
0answers
28 views

ActionSupport parameters not passing from component but will pass with same code outside component

Usually I'm able to find the answers to everything by searching, but I haven't come across any examples of this answered. I did find a couple questions that looked like they might be the same issue, ...
1
vote
1answer
20 views

Persisting Logs in Managed Packages

What is the best practice to persist logs from apex classes, batch jobs, and controllers? We are still in the development stage so we haven't considered LMA. We tried to store it in a custom object. ...
0
votes
0answers
22 views

Structure of visualforce page using standard controller, extension and wrapper of data?

I am creating a component to add to a contact record that shows aggregated note data from two different sources. Page <apex:page id="AggergatedNotes" standardController="Contact" ...
0
votes
0answers
26 views

Javascript Error when trying to use apex:actionFunction on service console

I have a visualforce component I am working on that simply has a table of data that is shown on a page layout within the service console. When you click on a link in the table, it opens a subtab using ...
0
votes
1answer
55 views

How can I pass a GET query param into my server side APEX controller?

Background: I am trying to redirect a user from an external site to my salesforce visualforce page with a GET query param as part of the URL. (This is part of a managed package) I want that parameter ...
1
vote
1answer
38 views

Trying to create an apex page with a specific height

I am not new to development but am when it comes to Salesforce Visual Force. I am trying to create a page that will be a certain height. When this Visual Force page is inserted into the Salesforce ...
0
votes
1answer
25 views

Pass the ID of current record to Visualforce Component from Apex Class/Controller

I'm working on a Visualforce Email Template which will be sent from the parent Loan (LLC_BI__Loan__c) record in Salesforce, and I'm trying to include fields from the child Entity Involvement (...
0
votes
1answer
12 views

Email address as a parameter in vf page

PageReference retURL = new PageReference('/OrderHistoryguest?orderNumber='+sapOrderNumber +'&email='+userEmailAddress); when i have passing email by apex class to vf page as a url parameter its ...
2
votes
1answer
51 views

Opening the VF page in a new Tab Lightning

We are converting a VF Page from Classic to Lightning and this VF page called from the button in Classic is like So when the button is clicked in Classic it opens the VF page in a new pop up window. ...
0
votes
0answers
12 views

Pass the new inputfield value to javascript before writing to the database

I have VF page. Some code: <apex:page standardController="CallReportHosp__c" extensions="CtrlCallHospEdit" id="CallsHospEditt"> <apex:form id="myForm"> <script type="text/javascript"&...
0
votes
0answers
7 views

Visualforce parent page child component communication question

I hope the following diagram elaborates the issue somewhat: Here is my use case: A VisualForce Page has the following area in it: A pageblocktabledisplays that shows some line items with some input ...
0
votes
0answers
20 views

Multiple File upload on public visualforce feedback form

I'd like to provide a multiple file upload module on a public visualforce page and I'm struggling with the upload process. As the upload process requires to have a record ID, how can I save the ...
0
votes
2answers
30 views

i need to use a visualforce component in an html body in my trigger which sends a mail

I have a trigger which sends a mail on update of the approval status . I am using a HTML part in that trigger to send the mail . In place of x I want to call my visualforce component which is ...
0
votes
0answers
23 views

FullCalendar.io timezone issues while rendering events

We're trying to render salesforce events in fullcalendar using jquery. We're facing some issues with timezone when rendering events in dayview/monthview/weekview. I'm rendering full calendar using ...
1
vote
1answer
26 views

VF controller function referenced by apex:actionSupport not firing

I'm trying to call this function but the debug statement is not working. <apex:selectList value="{!year}" title="Yıl" id="yearFilter" multiSelect="false" size="1" > <apex:...
0
votes
0answers
16 views

Visualforce Email template recipient type with multiple customized objects. Create customized object

Requirement is to use email template with visual force components, and send an email for each environment the contact is associated to. For example, contactA is associated with env1, env2, and env3. I ...
0
votes
1answer
13 views

Create picklist in visualforce from method return

How to create a picklist with the return from the following method in visualforce, currently receiving the following error: Unknown property AccountCreation.AccountNames @RemoteAction public ...
0
votes
0answers
28 views

How to add the hover to the Kanban view when you move the mouse over one record?

We can config the hover in detail page in the compact layout/ mini layout. However, for the kanban view, I think we will need to build the all Kanban in Lightning Component. Please correct me if you ...
0
votes
0answers
28 views

how to select all checkboxes by one checkbox in header

visualforce <apex:pageBlock > <apex:pageBlockSection showHeader="false" id="B" columns="1"> <apex:pageblocktable value="{!InvoiceList}" var="rs" id="A"> ...
0
votes
2answers
60 views

Email content not rendering when Pass custom relatedTo object's param from visual force email template to controller

I'm really confused by order of execution. I have tried with a few posts, but mine does not work. Please help with taking a look. I am able to receive the templated email, but there's no incident ...
0
votes
1answer
39 views

Visualforce Page : kindly read the info at the end of the code regarding pagination and Javascript function

Visualforce Page: <apex:page sidebar="false" Controller="Invoice_details" showHeader="False" docType="html-5.0" readOnly="true" > <html xmlns="https://www.w3.org/2000/svg" xmlns:xlink="...
1
vote
1answer
26 views

Custom component setter value being passed in to controller, but getter always returns null (or the initialized value)

The setup: I have a standard controller with two extensions on it. <apex:page standardController="Contact" showQuickActionVfHeader="false" extensions="ExtOne,ExtTwo"> <c:...
0
votes
1answer
32 views

Visualforce page insert lead and redirect to url

I'm very new to coding and trying to create a visualforce page form that will be published to external entities to get more leads, after keying in information required, hit save and the page will ...
0
votes
0answers
41 views

Pass JSON String in Visualforce component

I need to pass a JSON string in my Visualforce component : {'BillingCity':'Dubai'} <apex:page showHeader="false" sidebar="false" standardController="Account" recordSetVar="accounts"> <c:...
0
votes
0answers
14 views

Unable to pass Lookup field input value from VF page to controller to be passed to another page on click of a button

I have a requirement to use contact to create a new case. I have created a new page using case.contactID input field. On pressing a command button, the contact selected should be passed to new VF page ...
0
votes
0answers
16 views

Email template relatedToType not binding values

I have done a full day of research, looked into many code examples, but could not figure out what went wrong with my code. Help please. My email template <messaging:emailTemplate subject="TEST-{!...
0
votes
0answers
27 views

“No remoted actions found to resolve” issue in Apex:Component

I am attempting to use a remote action in my apex:component to update an object, but am getting an error of "No remoted actions found to resolve !$RemoteAction.myController.applyCredit" My apex:...
0
votes
1answer
26 views

Getting different field label while accessing it in apex component

here the sObjectType is of Account type Map<String, Schema.SObjectField> fieldMap = sObjectType.getDescribe().fields.getMap(); for (String fName: fieldMap.keySet()) System.debug('Field ...
1
vote
0answers
32 views

Create Multiple PDFS from a Visualforce page

I have a VF page that is designed to export as a PDF. It looks at a parent record: Division__c and uses a component to loop through and create a PDF of all the child records: Region__c. Currently, ...
0
votes
0answers
22 views

Create common custom visualforce page for standard entities

I am trying to implement the visualforce page with in which I am showing phone number fields in detail page. For example , For any specific contact / lead / opportunity / account / cases I am ...
0
votes
1answer
25 views

How to Pass parameter value from controller to Apex:repeat getValue()

I wonder, how can I pass input variable to getValuesForRepeat in apex:repeat please. I.e, my apex:repeat renders different contents depends on inputVar1. Basically, <apex:repeat value="{!...
1
vote
1answer
22 views

Track click on a Visualforce component that plays a video

I am trying to figure out how to track (send to Google Analytics) when a user clicks to play a video that is referenced in a Visualforce page (below). <apex:page showHeader="false" ...
2
votes
1answer
81 views

Access parent controller attribute from Visual force component

I have one Visualforce page and one Visualforce controller. I have different attributes defined in the controller of Visualforce page as shown below public boolean firstPanel{get;set;} public ...
0
votes
0answers
30 views

Populating VisualForce Area (Home Page Component) with record count totals meeting criteria for the running user

I'm very new to working with visualforce and struggling to achieve the following. I want to create a Visualforce page / area component on the home tab layout which displays counts of records from a ...
-2
votes
1answer
69 views

RenderAs='PDF' Index in the Visual Force Component/Page [closed]

I'm trying to create a Visualforce Component with the renderAs="PDF" and I'm stuck on the issue with the auto-number/index. Is there a way to create the auto-number and a index page on the VF Page or ...
4
votes
1answer
102 views

How to use polyfill in visualforce component?

Link to polyfill: https://github.com/jonstipe/number-polyfill The polyfill is to allow increment decrement buttons in Internet explorer for I added the .js and .css file from the polyfill as a ...
0
votes
0answers
19 views

Dynamically assign values to VF page, render as PDF and attach it to mail

here is my scenario. From a method 'myClass1' I send Account, contact and a list of custom records to a method 'createEmailwithPDF' of another class - 'myClass2'. 'createEmailwithPDF' takes all the ...
0
votes
1answer
28 views

How to fix Apex:Inputfield Size when using slds sizing?

I am working on a vf page with a random number of fields. The problem I'm facing is related to the sizing of the fields. As shown in the screenshot, the contact number field is one long field instead ...
1
vote
1answer
24 views

DML currently not allowed in Component

I am attempting to update information in a visualforce component, and am getting the error System.LimitException: DML currently not allowed Everything I've searched says that that happens when ...
0
votes
0answers
17 views

Add lightening component in record view of mobile

I have designed a lightning component which is displayed under the details section of the salesforce record in desktop view. But this is not reflected in the mobile application. lightning component ...
0
votes
1answer
54 views

How do I stop oncomplete action on button if action throws error and display the error, on a modal VF page?

I have a modal VF component displayed over a VF page (opened as a result of click on a button on the underlying page), from which I enter a few criteria and then click a button to generate a VF PDF ...
0
votes
0answers
26 views

Field Sets displayed by VF Components in VF Page: How can changes to the fields be saved from the page?

I have a Lightning component for saving an application. So far the first tab embeds a VF page. That page in turn includes a certain VF component twice. Finally, the component dynamically pulls in a ...
1
vote
0answers
19 views

Populate lookup field by clicking search result

Im creating custom search result from custom object and facing several problems, I want to populate lookup field based by clicking value that is retrieved by the search function, so there are 2 points ...
0
votes
1answer
44 views

List<List<SObject>> in apex:attribute type

My visualforce component has the following attribute: <apex:attribute type="SObject[][]" name="var" description="Variable to store results in." assignTo="{!searchResults}" required="true"...
0
votes
0answers
14 views

Visualforce Template Custom BCC field

I'm currently working with the Welcome email from a lightning community which is using a Visualforce email template which allows to be dynamic based on the user and experience offered in the community....
2
votes
1answer
23 views

Not Able to get fields from controller to Email Template when the mail is sent from scheulder

It would be great if I could get help with the below requirement that I have to achieve. The requirement is that I run a scheduler in a custom object called Project__c. Around 20+ projects pass the ...
2
votes
1answer
51 views

Accessing {!$Organization.IsSandbox} in Visualforce?

So in visualforce I can access all kinds of organization variables like: '{!$Organization.Name}' '{!$Organization.City}' '{!$Organization.Country}' '{!$Organization.Id}' etc... Now what I need is ...
0
votes
0answers
27 views

Map key {picklist value} not found in map

For my changes i have added a new picklist value and after that I'm facing this error.I debugged it and all the values are coming null. I'm getting the below error: Error is in expression '{!...