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
1 answer
167 views

How can the layout of a pageBlockSection be fixed in place so they don't move around when completed?

I have a pageBlockSection that moves/jumps up the screen when a value has been entered. How can I fix this and its contained inputField in place? If I use the following, when the field is changed the ...
Martin of Hessle's user avatar
1 vote
1 answer
34 views

How can visualforce page lists be lists be dynamically filtered?

I need to be able to filter leads and opportunities based on a partial or complete postcode. When this is entered I need the Leads and Opportunities to only contain the matching rows. Page Layout ...
Martin of Hessle's user avatar
1 vote
1 answer
175 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 ...
GmDeepakChounan21's user avatar
0 votes
2 answers
433 views

Dynamically set columns on pageBlocksection and pageBlockSectionItem?

Page : <apex:page id="ContactDetails" extensions="ContactsController" standardController="Case"> <script> function showFieldsOnClickAction() { showFieldsAction();...
Nagendra Singh's user avatar
0 votes
2 answers
94 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 ...
Girbson BIJOU's user avatar
-2 votes
1 answer
212 views

Get object name when object tab is override by vf page [closed]

I'm thinking to write a dynamic vf page which will override the object Tab(Account). So how to know the object name in apex class. Once I got the object name then I will then i will perform remaining ...
Anup Kage's user avatar
  • 129
0 votes
1 answer
572 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 ...
GmDeepakChounan21's user avatar
0 votes
1 answer
711 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" ...
Hennry's user avatar
  • 35
0 votes
1 answer
2k 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 ...
Hennry's user avatar
  • 35
0 votes
1 answer
519 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 ...
Stas Christiansen's user avatar
3 votes
1 answer
207 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 ...
Keith C's user avatar
  • 136k
6 votes
1 answer
668 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 ...
Keith C's user avatar
  • 136k
3 votes
1 answer
2k 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 ...
ToskaMan's user avatar
0 votes
1 answer
470 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 ...
user59569's user avatar
1 vote
2 answers
639 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"...
MicroSumol's user avatar
1 vote
1 answer
1k 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, ...
kanishka's user avatar
0 votes
1 answer
789 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 ...
Ashutosh Arora's user avatar
1 vote
1 answer
167 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 ...
Hennry's user avatar
  • 35
0 votes
0 answers
124 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 ...
sivanee's user avatar
  • 123
0 votes
1 answer
190 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: ...
S.B.'s user avatar
  • 2,071
0 votes
2 answers
1k 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 ...
SHAAN's user avatar
  • 3
1 vote
1 answer
102 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 ...
Donald Reagan's user avatar
1 vote
1 answer
160 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()}'...
Tyler Dahle's user avatar
  • 2,689
0 votes
1 answer
758 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 ...
SFDCLearner's user avatar
0 votes
1 answer
148 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 ...
GmDeepakChounan21's user avatar
0 votes
1 answer
309 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 ...
Donald Reagan's user avatar
-2 votes
1 answer
93 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 ...
Donald Reagan's user avatar
0 votes
1 answer
543 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 ...
Krishnan Mishra's user avatar
0 votes
1 answer
356 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 '...
Quest_sfdc's user avatar
0 votes
0 answers
44 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 ...
Peter Noges's user avatar
  • 1,100
1 vote
1 answer
3k 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 ...
salesforce Developer's user avatar
1 vote
0 answers
632 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="...
highfive's user avatar
  • 6,241
0 votes
1 answer
769 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) { ...
khan 's user avatar
3 votes
1 answer
1k 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 ...
Olivia's user avatar
  • 3,461
0 votes
1 answer
287 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 ...
Thomas's user avatar
  • 2,294
0 votes
1 answer
83 views

Vf component for different objects [closed]

I want to design one vf component for 2 different sobjects with same fields
eeda sundarayya's user avatar
-1 votes
1 answer
231 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 ...
abhishek sharma's user avatar
0 votes
1 answer
263 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:...
Peter Noges's user avatar
  • 1,100
0 votes
1 answer
364 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> <...
NITHESH K's user avatar
  • 2,525
0 votes
2 answers
1k 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" > ...
Maggie's user avatar
  • 5
2 votes
1 answer
90 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....
Rachael's user avatar
  • 21
0 votes
0 answers
217 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 ...
ncmouli's user avatar
  • 310
5 votes
4 answers
208 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 ...
Adrian Larson's user avatar
  • 150k
0 votes
1 answer
495 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:...
Andrii Muzychuk's user avatar
0 votes
1 answer
411 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:...
Varun's user avatar
  • 3,093
0 votes
0 answers
975 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 ...
Kevin Ross's user avatar
0 votes
1 answer
146 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 ...
Ken's user avatar
  • 326
0 votes
1 answer
2k 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 --> ...
Sarang's user avatar
  • 2,560
1 vote
1 answer
250 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 ...
Guru's user avatar
  • 23
0 votes
3 answers
2k 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 ...
Aruna's user avatar
  • 427

1
2
3 4 5
9