Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Dynamic Visualforce components offer a way to create Visualforce pages that vary the content or arrangement of the component tree according to a variety of states, such as a user’s permissions or actions, user or organization preferences, the data being displayed, and so on. Rather than using ...

1
vote
2answers
22 views

Hard coded images - How to convert

Our Salesforce Org is moving from na6 to na70 I have been trying to find a way to convert this: <img src="https://c.na6.content.force.com/servlet/servlet.ImageServer?id=12345678" alt="Get Support"...
0
votes
1answer
20 views

How can I dynamically add input fields in visual force on a button click?

I want to add a button "ADD NEW RECORD". When the button is clicked, a new row for input fields of accounts should be added along with the checkbox wrapped with it. How can this be done? EDIT: Also, ...
0
votes
0answers
15 views

Unable to Retrieve Flow Variable Value in Visualforce Extension

I'm attempting to set a FinishLocation on flow embedded VF page, where the location is set to the ID of the newly created record. My goal is to deliver the user to their new record once the flow has ...
0
votes
1answer
17 views

Issue with Visualforce page email template subject line

I'm trying to send 3 different email using a single email template and visualforce component. I'm using rendered to display the text in html email vf component based on conditions. However, when I'm ...
0
votes
1answer
37 views

Dependent picklist error: “Validation Error: Value is not valid”

I have a table, where each Wrapper instance corresponds to each row of the table. On select of Project - tasks of selected project should be rendered. If i'm trying to pick task and add a new row VF ...
1
vote
1answer
19 views

Roll Up Fields On Table in VF PAge

I want to Display in roll up data in table of visualforce page. Scenarios: Table contain list of account types and every account have multiple fields. want to rollup every account types fields and ...
0
votes
0answers
29 views

Attempt to de-reference a null object on dynamic binding visualforce Component

Here I am trying to get related object and their fields dynamically.In debug I am getting related objects and fields but error is while loading VF page.Here is my code: Apex Class: public class ...
0
votes
1answer
31 views

Display Relationships Between Lists on Visualforce Page

I have a list of strings. I am using these strings to populate three other object lists by querying for this string. For every iteration I am adding the lists populated to a List of lists. Ex: ...
0
votes
2answers
45 views

How to restrict a <apex:inputField> for decimal value upto 5?

<apex:inputField value="{!expence}" styleClass="slds-input inputWidth August" onchange="updateAfterBlur();" /> Input - 12.22222 (Decimal value ...
1
vote
1answer
33 views

Dynamically switch from inputfield to inputcheckbox for number field

I have an object field that is of number data type, based on a picklist value in the parent object field I want to render in the visual force page as an input check box. If the check box is checked ...
0
votes
0answers
16 views

Dynamic field calculation in Lightning record edit page

I'm trying to build a VF page with simple javascript to return a field value based on two other input field within the create/edit page. For eg I want users to enter in arrival date and departure ...
1
vote
1answer
20 views

Is it possible to grab buttons on record page from Apex to parse button URL merge fields?

We are letting users select certain buttons that contain a URL in our application. That button now accepts merge fields. Handling '{!Object.field}' and '{!$User.field}' and '{!Today()}', and '{!Now()}'...
0
votes
1answer
34 views

can we render related list based on a condition?

I want to display related list based on condition. [Here Unit__c has MDR with Proparties] Here is my page: <apex:page standardController="Property__c"> <apex:relatedList list="Units__r" ...
0
votes
1answer
36 views

VF Page : How to display totals for each Opportunity when grouped by Opportunity Type?

I am trying to display a table in visualforce page. The table contains list of Opportunity Lines and totals Account —> 4 Opportunities (with Oppty Type as New Business and Add-On). First Oppty —> 3 ...
0
votes
0answers
185 views

Dynamic Field Value in Custom Button or Link Detail

I have a Dynamic Field Value or Link Detail attached to Contact/Leads, this link uses merge fields to build a link that contains Contact.MobilePhone like so for example: Button or Link URL https://...
0
votes
1answer
198 views

Setting multiple selections on a dynamic created <ui:inputselect>

I'm sure I'm missing something obvious here but I'm trying to set all dynamically created iputselectoptions as selected when my lightning component is initialised but I'm finding that nothing is set ...
0
votes
1answer
17 views

SLDS Tab Error msg issue in VF page

I have created 4 SLDS Tabs in a Visualforce page and every tab contains some required fields which are generated by fieldset. the problem is that when I clicking on NEXT button showing error ...
0
votes
1answer
57 views

Display dynamic calculated field names in Visual Force page [closed]

I have an object as objDates with field names as Day1__c, Day2__c and so on till Day366__c. I'm using DayOfYear() to access the field values dynamically. I'm able to read(get) and write (put) values ...
-2
votes
1answer
36 views

Assign row values from one object to another object as columns or fields

I have row values as dates in one object, i.e dates within a given year. I have a second object with field names as Day1__c, Day2__c and so on till Day366__c. I want to assign the dates to the fields ...
0
votes
1answer
68 views

Why my csv file is blank?

I try to pass on a list to a new visualForce page and then display that list as a table to download as a csv file. But I am getting blank csv file. As soon as i redirect to my new page the list gets ...
0
votes
1answer
38 views

SLDS in Visual Force - How to render a conditional div?

I have a slds-grid that I want to display conditionaaly I tried <div class="slds-grid slds-wrap slds-gutters" rendered="{on condition true}"> doesn't work, condition is correct. Tried using '...
0
votes
0answers
21 views

User-specific settings page for managing boolean inputs 1:1 for each field in a dynamic describe of fields?

There is a managed app on the Appexchange and it solves a limitation by employing a "Track History" concept to give admins a boolean setting specific to each datafield on User object (for the purpose ...
0
votes
0answers
26 views

How to display selectcheckboxes option in pageblocksection item with rows and coloumns

I am having a VF page with selectcheckboxes and 30 options. I used pageblocksection item to display the all options. All of the options are coming in one coloumn, I want options to be displayed in 3 ...
0
votes
1answer
297 views

Assign Ids dynamically to Apex:inputField

I'm trying to assign Id to my inputField dynamically, those input fields are coming from field sets. These Ids needs to be assigned to those fields which are required in database. On giving Id ...
1
vote
0answers
121 views

Generate Excel in Salesforce Visualforce/ Apex

Has anyone done Excel file generation in Salesforce with bit complex formatting? If so appreciate any guidance or reference. I already tried formatting with CSS and having the contentType="...
0
votes
1answer
51 views

How to Display Records in vf [closed]

in Controller i get the ContactRoles from opportunity through a listview but how to display ContactRoles in vf page public AccountListViewExtension(ApexPages.StandardSetController controller) { ...
3
votes
1answer
193 views

Visualforce Email Templates Dynamic Subject Child Object

I have looked through a number of different threads and haven't found any clear answers to populating a child object's value in the subject of a Visualforce Email Template. I want to populate the ...
0
votes
0answers
156 views

onclick javascript button to visaulforce page button

salesforce classic onclick javascript button code : {!REQUIRESCRIPT("/soap/ajax/34.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/34.0/apex.js")} var connection = sforce.connection; var qid="{!...
0
votes
1answer
59 views

relative url for visualforce render to word

Is there a way to make the url used to render images from visualforce to word dynamic. The problem I am facing is that the URL works in sandbox but on deployment I have to change the url for ...
0
votes
0answers
24 views

Not able to get map value from vf controller

VF page : <apex:repeat value="{! ContactList}" var="cont"> {!followersCnt[cont.id]} </apex:repeat> Controller : public Map <String,String&...
0
votes
1answer
22 views

Vf component for different objects [closed]

I want to design one vf component for 2 different sobjects with same fields
-1
votes
1answer
44 views

Hi guys i m new in salesforce and making tree view on account as parent, contacts as child and task/event as gchild

I have to retrieve in created date sorted manner i m able to retrieve up to task and events but they both came in separate list .I am unable to put both in same list and sort them by recent created ...
0
votes
1answer
68 views

Dynamic Select Option in Remote Objects Visualforce. This page is not record-specific

The question is in the code comments. Thank you! <apex:page> <apex:remoteObjects > <apex:remoteObjectModel jsShortHand="js" name="myCustomObject__c" fields="Id"> <apex:...
0
votes
0answers
31 views

Apply SLDS on <<apex:dynamicComponent>

My VF page is using Apex dynamic components, i convert it into lightning but the dynamic components were not converted. How can I apply lightning Design system on .? The StyleClass and Class attribute ...
0
votes
1answer
94 views

Facing Problem with rendering apex:dynamicComponent

Extend question from here Below code step 1 i have tried with rendering component1 and component2 it is working fine. step 1: Visualforce Component1 <apex:component> <div> ...
0
votes
2answers
279 views

How to add IF condition to check the field value in the VF page email template [closed]

I have tried to add If condition but getting error Error: Unknown property 'VisualforceArrayList.Name' <p>Dear {!recipient.name},</p> <table border="0" > ...
2
votes
1answer
56 views

Apex Form to collect mutiple values and run query

I currently have a VF page and custom controller that collects name and email and searches for contacts that match the email, if it finds 1 contact, it 'registers' that contact for our training course....
0
votes
0answers
63 views

Freezing column in visualforce page bageblock section [duplicate]

I have requirement to freez/lock firsrt 2 or 3 colums in a table which is implemented using pageblock table supose i have a page which displays all customer recrod details using pageblock table now i ...
5
votes
4answers
84 views

Is it possible to get the label or describe from an SObjectTypeToken?

In my controller, I have some SObjectType property: public SObjectType myProperty { get; private set; } I want to get the label (or better yet the entire describe) of this object in Visualforce ...
0
votes
1answer
120 views

Change value in input component on rerendering

I have an <apex:dataTable value="{!dtos}" var="dto">. There I have <apex:column> <apex:facet name="header">rrr</apex:facet> <apex:outputPanel id="rrr"> <apex:...
0
votes
1answer
161 views

Visualforce : Dynamic rendering of apex:inputfield

I have a custom object Response__c as shown below. xx,yy,zz are different field values for the three records. Please note that not all fields are populated for all the three records. A single apex:...
0
votes
0answers
233 views

Dynamically display sections on a Visualforce page based on record type

I am trying to develop a visualforce page that will display different sections based on record type. I have gotten the page to work as expected upon creating a new record; however, when an existing ...
0
votes
1answer
42 views

Get list of Page Layouts from a VF Page

Anyone know if there's a way to get a list of the page layouts for an sObject type from a VF page? The API docs say there is a property called namedLayoutInfos. But javascript trying to reference ...
0
votes
1answer
190 views

How to dynamically add SLDS class to VF page div tag

On click of a button, I want to dynamically add 'slds-has-error' class to a div around an element. My markup is as: <apex:form id="theForm"> <!-- divContainer --> ...
1
vote
1answer
52 views

Create Dynamic Table On the basis Of 2 Objects [closed]

There are 2 objects one obj1 and obj2 I have to create dynamic table in visualforce page in which if new record is inserted to the obj1 then one row should be added to table and if one record in obj2 ...
0
votes
3answers
355 views

Non-editable input fields

How to make an input field non-editable when it has values. ie. to make an input field non-editable after it has dynamically fetched values from an object field. I am having my code within my ...
0
votes
0answers
31 views

How to show image dynamically as well as in sequence based on time stamp

I am having one requirement where i have to show 12 different images on to a VF page. The condition to show these images are, 1. There are 12 check boxes on standard layout of Lead object. 2. When ...
0
votes
0answers
415 views

Hide pageblock section in vf page

I would like to disable my pageblock section which has outputpanel and a repeat element before it. This is my 2nd pageblock section and I passed img[1] and i also used component.section2 directly but ...
3
votes
1answer
721 views

How to catch internal Salesforce error in APEX?

I have a condition where i have to get a list of valid custom label names in a list using which i can display those custom labels dynamically on the page. But whenever i am checking if the custom ...
0
votes
1answer
51 views

Unable to bind custom object on to pageblock on rerendering of VF page

Am trying to write a VF page which has details of the custom object and their related lists in tabular format. My code for it goes as below. Visualforce Page: <apex:page controller="Report" ...