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.

Filter by
Sorted by
Tagged with
1
vote
1answer
63 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 ...
1
vote
1answer
31 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
202 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
1answer
1k 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
81 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
101 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
43 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
208 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
153 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
32 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
1answer
2k 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
337 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
258 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
520 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
164 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
1answer
62 views

Vf component for different objects [closed]

I want to design one vf component for 2 different sobjects with same fields
-1
votes
1answer
130 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
150 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
240 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
727 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
85 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
166 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
127 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
393 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
321 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
537 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
98 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
583 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
123 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
971 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 ...
4
votes
1answer
2k 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
61 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" ...
0
votes
1answer
165 views

Enabling a picklist field, text field and a commad button on click of a command link

<apex:column> <apex:commandlink value="Reject" action="{!Reject}" reRender="none"/> <br/> <apex:selectList value="{!selValue}" multiselect="false" size="1" disabled="...
0
votes
1answer
60 views

Javascript function not displaying correct result

<apex:page standardcontroller="Price_Study__c" extensions="dynamicpicklist" sidebar="false" > <apex:includeScript value="{!URLFOR($Resource.JqueryA, 'js/jquery-1.6.2.min.js')}" /> <apex:...
0
votes
1answer
137 views

Unable to rendered the pagblock after clicking the button

Initially when pageload and first time rendered working ,but when i am clicking again save button the pageblock should hide if there is no record in pageblocktable. Please see below code <apex:...
3
votes
2answers
3k views

Passing counter variable (apex:repeat + apex:var) into apex:assignTo yields 'null'

I'm trying to build a Visualforce page which lists a set of records (via apex:repeat for a Visualforce 'record' Component), and where each record has a 'delete' button under it. Hitting delete should ...
1
vote
0answers
488 views

VisualForce: Dynamic Page Headers based on Parameters works as expected until adding actions to page

Background: I am working on a VisualForce page to allow our customers to 'Add to Calendar' from an email alert that they receive when we book an Event. The Apex page takes 2 parameters right now, ...
1
vote
0answers
66 views

Why is salesforce returning internal server error when I try to render a custom dependent picklist in visual force page?

I have a visual force page which overrides the Edit/New pages in salesforce. But when I create a dependent pickList like so: Navigate to Setup> Customize > Accounts > Fields Scroll down to "Contact ...
0
votes
1answer
84 views

save error :unknown property 'DataInsert.fields'

Here is my apex class: global class DataInsert { // property declarations Set<String> fields ; global PageReference doInsert() { // other logic ...
0
votes
3answers
81 views

How to separate the required fields from Custom Object record?

I'm posting this question previously but i'm not achieving my goal for that i posting again I have a custom object called Incident__c. and it has some fields Imtpact__c Incident_state__c ...
0
votes
1answer
105 views

Issue with passing different value as ComponentValue in apex:dynamic Component inside apex:repeat tag [duplicate]

I am facing an issue. When i am putting <apex:dynamicComponent id="dynamicComp" componentValue="{!clauseList.dynamicCompName}" invokeAfterAction="true"> inside <apex:repeat> tag only the ...
1
vote
1answer
60 views

How to add inputs of the correct widget type to the page?

I have a an object that defines attributes and the type of attribute; for instance Nme (String), LastSeenDate__c (Date), Age (Number), Countries (Picklist), etc. Based on this information, I want to ...
1
vote
1answer
57 views

The post from Chatter group in Salesforce not properly displayed

I am using javascript remoting to get the chatterfeed details and putting it in the visualforce component and show it using Handlebar Moustache . Below is the part of that component {{#if ...
3
votes
1answer
702 views

How we can use Authentication Provider in Visual force page?

I am using custom visual force page for Community self register and login. I want to add option for register and Login via Gmail and LinkedIn. I created two Authentication Providers and it is working ...
2
votes
1answer
66 views

Inconsistent behavior with apex:dynamicComponent

I'm trying to migrate some code over to using dynamicComponents to avoid some XSS vulnerabilities and it's not working how I would expect it to when inside any type of repeat functionality (apex:...
0
votes
1answer
89 views

Visualforce actionRegion doesn't stop page inputField validation

actionRegion around the page navigation doesn't stop the input:field standard validations. Using the actionRegion around the selectList is stopping the validation but is not sending the changes ...
0
votes
0answers
236 views

Page is refreshing after putting CKEditor

The code below shows that I have a pageblocktable that contains a column of a ckeditor which is a long text. I want to rerender it within the same page by adding of a new row using the button Add Row. ...
1
vote
0answers
88 views

Is it possible to replicate report customization through visualforce?

I want to replicate the class style drag and drop report builder (see image) on a visualforce page to upload as a lightning component on the Napili Community.
1
vote
1answer
173 views

How to call java script function from dynamic component in apex

I am getting below error : Value assigned to expression field is not valid for <apex:commandButton oncomplete> I am calling javascript function on 'oncomplete'. Component.Apex....
0
votes
1answer
968 views

Can i call a visualforce page on the click of a button in lightning and display an email template which has ids retrieved from a custom object?

I have selected 3 out of say 10 and submitted it for updation in a lightning page(apex)( the fields in these 3 records need to be updated to new fields). On the click of the submit button, we pass ...

1
2
3 4 5
9