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

Questions tagged [dynamic-visualforce]

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 standard markup, dynamic Visualforce components are designed in Apex.

0
votes
0answers
19 views

how to conditionally render a gauge chart based on values of a numeric array in Visualforce

controller--snippet if(pos >=0 && pos <assTElist.size()){ lstTrans = [select Maturity_Assessment_Question_ID__r.Transformation_Element__c fa, ...
0
votes
1answer
33 views

Wrapper list class getter setter issues

I am facing some challenges into the wrapper class for getter and setter. I have displayed some records based on question types like text, checkbox, and radio option. But when I clicked on a button ...
0
votes
1answer
21 views

Make tab Enable/ Disabled

In the Vf page where I created a tab. I want to make enable or disable if the checkbox is true.but my code is not working here is my code: <li class="slds-tabs_scoped__item tabs_scoped-li-2" ...
0
votes
1answer
46 views

Add Rows on table in Vf page

I am trying to add rows dynamically in my table in vf page. but when I try to do so it overlaps the current row. here is my controller class: public class BulkPaymentController { public String ...
0
votes
1answer
17 views

Dynamically set apex:inputField required attribute while using CSS to hide/show field

How do I dynamically set the required property on apex:inputField while using CSS to show/hide said field in order to avoid the validation error upon saving a form that has said field as hidden AND ...
0
votes
1answer
72 views

Displaying related object data dynamically on visualforce page

I need to display related object records dynamically on VF page but getting only last object records from list of sobject which I am using in ape class.Here is my code: Apex code: public class ...
3
votes
1answer
34 views

Any way to pass parameters to apex:dynamicComponent?

Related to this question How to keep components out of the Visualforce view state when they are not needed?, I have many apex:dynamicComponents in my page that I want to put slightly different content ...
6
votes
1answer
76 views

How to keep components out of the Visualforce view state when they are not needed?

The view state problem we mainly run into is not properties of the controller using it up (as we use transient heavily) but the component tree that the Visualforce tags generate using it up. That is ...
1
vote
1answer
150 views

sfdcIFrameOrigin parameter being added to Site url unnecessarily when using mobile

I have a Visualforce Page which is hosted on a Salesforce site. I am using a URL rewriter to make the URL into a friendly one. The page has a few parameters being passed into it (3 to be exact) and ...
0
votes
1answer
46 views

reRender problem In Visualforce page

I have one checkbox in an object I want to update that checkbox in visualforce page, I'm able to update that checkbox successfully using(command button) apex controller, but that problem here is I ...
1
vote
2answers
42 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
31 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
1answer
55 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
78 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
23 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
32 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
37 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
103 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
35 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
21 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
23 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
50 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
196 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
544 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
38 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
60 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
38 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
99 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
67 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
26 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
38 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
517 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
180 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
61 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
215 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
1answer
98 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
29 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
30 views

Vf component for different objects [closed]

I want to design one vf component for 2 different sobjects with same fields
-1
votes
1answer
64 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
93 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
1answer
110 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
385 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
66 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
81 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
86 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
203 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
212 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
325 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
54 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
270 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 --> ...