Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
0
votes
0answers
20 views

I need my field to get updated recursively to get remaining balance [on hold]

I have a field which has total fees that we need to get. And another Field which has a monthly fees that we charge. So I need this total field to get updated each time the monthly fees get paid.(we ...
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
13 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
25 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
48 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
37 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
23 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
38 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
12 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
21 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
25 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
18 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
20 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
24 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
21 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
54 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
58 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 ...
1
vote
0answers
36 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
18 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
24 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
21 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
16 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
39 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
25 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
28 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
11 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
37 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
25 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 '{!...
0
votes
0answers
21 views

How do I do VF component from VF page?

This part of code I want to use in the future, so I'm trying to make a component with the part: <apex:page standardController="Contact" extensions="ContactController" renderAs="pdf" applyHtmlTag="...
0
votes
1answer
43 views

Invalid field PageSize for SObject Contact

I am trying to add pagination to the list and refering this link: https://trailhead.salesforce.com/en/content/learn/modules/visualforce_fundamentals/visualforce_standard_list_controllers <apex:...
0
votes
1answer
24 views

Embed visualforce page to existing layout

I am new to the salesforce and I want to do the same thing that this guys want to do: Embed a Visualforce page in a Standard Edit Layout But on the left side I am not able to see "Visual Force Pages" ...
0
votes
0answers
88 views

how to mark checkbox true for particular record

I am facing problem in marking checkbox true. Below is my cases Case1:(It is correct and working) I need records which have duplicate names and do not have any opportunity or contact associated with ...
0
votes
1answer
42 views

How to mark check(true) for particular records

Whenever i run this code in console all duplicate record are checked . I need those record ,if duplicate name(record) is greater than 1 than mark it as checked. (i.e if two record of same name then 1 ...
0
votes
0answers
22 views

Getting Null values in Controller variable from VF Components

I have a VF component which is passing some values to the controller but when I have put the debug statement then Null value is printed I think controller is being called first before setting the ...
0
votes
0answers
33 views

Refresh Visualforce Component inside Apex:Tab

I have a problem with refreshing vf component after clicking on apex:tab I tried rerender and some actionFunctions, but nothing works. Here is code: <apex:tab label="Overview" name="AccDetails" ...
2
votes
1answer
39 views

Pass value from apex component to controller

I have a visualforce force component: <apex:component controller="NewITAssetController"> <apex:outputPanel> <label>Date field</label> ...
0
votes
1answer
46 views

How to conditional render an icon in component

I need a reusable component that will conditionally render a resource icon on a visualforce page. <apex:page title="Visual Test"> <apex:pageBlock title="Result Component"> ...
0
votes
1answer
49 views

file upload through VF page to external ftp site?

I have a request to increase the file size upload limit from existing 5 MB to 25~50MB. The functionality currently uses a VF page to upload the file to an external ftp server. We changed the ...
1
vote
1answer
57 views

List view button without standard controller

Is it possible to create a list view button without a standard controller? My requirement is, I want to create a List view button for any object. In the current scenario, I have to write the same ...
0
votes
0answers
25 views

Copying fields data when checkbox is checked in multiple rows(Visualforce Page) [duplicate]

I have challenge I'm working on a visualforce page I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page. So here I have multiple rows and ...
0
votes
2answers
21 views

Multiple Child Records from Parent Related List: Url No longer exist

I need to create Multiple Child Records from Parent Related List but i get the Error: "URL No Longer Exists" but the data saved in the database. Also, it seem that the Parent Id does not populate ...
0
votes
1answer
41 views

Visualforce component to display formatted currency [duplicate]

I have a component that I am using with a visualforce email template. It's a simple table that I get from a controller query to display Opportunity Products. I want ot format the totalprice field so ...
0
votes
1answer
41 views

Dynamic initialization of custom visualforce components [duplicate]

Visualforce has initialization of visualforce components in apex. For example MyCustomComponent component: ApexPages.Component customComponent = new Component.c.MyCustomComponent(); Is that possible ...
0
votes
0answers
25 views

Rerender of Outputpanel not working in modal component

I have a VF page with a modal component in it, which gets displayed depending on a button click. There are 2 issues: I pass a record id to the modal component via a data-attribute, which populates a ...
0
votes
0answers
65 views

Call Apex Controller method from button in Visualforce component table row

I have a Visualforce page which has a few Visuaforce Components to display sections of data, one of which contains a table with an "apex:repeat> for each row. Each of these rows has a button, which, ...