The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

90 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
4answers
7k views

Display the fields properly in output panel while using actionRegion

I am using actionRegion for to show/hide the fields based upon picklist in Opportunity. When i am selecting the Stage picklist value is Closed Lost, then 4 text fields will be displays. It works fine. ...
4
votes
0answers
266 views

OWASP Zap Report for scan Http request

Hi Friends , anyone heard about OWASP Zap Report ?? Scan request and response. i want create repohttps://eti-massemail.na24.visual.force.com/apex/MassEmail rt for one app of Salesforce. i face an ...
4
votes
0answers
295 views

Visualforce - Lookup InputField not Displaying picklist when in Dynamic Component

Standard Salesforce OOB lookups display a picklist field when a value is entered that matches multiple records (In my scenario a lookup to the 'country' table could return Australia & Austria for ...
2
votes
0answers
1k views

Rerender is not currently supported with rich text editing enabled

I'm trying to implement richText and my datatype is Text Area (Rich) when I click on Save button I get the error Does Salesforce support Text Area Rich by default? Error: Rerender is not ...
2
votes
0answers
430 views

Dynamic <apex:inputHidden> fields

I am trying to create a small VF page which displays a set of dynamic fields. Here is the controller: public class dynFields1 { public final Case casex {set;get;} public dynFields1(ApexPages....
2
votes
0answers
681 views

Dynamic Visual Force Binding - getting values to Controller (null)

I am stuck at what I beleived to be a simple implementation using Visual Force Dynamic Bindings. I have the following scenario: A Standard Case has a relationship to a Custom Object (we can call it ...
2
votes
1answer
534 views

How to display tabs within tabs in Visualforce?

I tried using dynamic Visualforce components to display tabs within tabs. But it does not seem to work. Apex Class: public Component.Apex.TabPanel getMyTabs() { Component.Apex.TabPanel myTabPanel = ...
2
votes
1answer
62 views

Redirecting when i hit save button with values

i want to create a code that when i hit save button i want to save the data and redirect it to a another view page with same values. I tired several method, but it does not work. Anybody have any idea?...
2
votes
2answers
1k views

Images are fetched from attachments for Visualforce page rendered as PDF displaying broken images

I am trying to fetch the images from the attachments and trying to display these images in a visualforce page which is rendered as pdf. But in the pdf I am getting broken images. If I remove the ...
2
votes
1answer
300 views

Custom Create new view

i need to replicate the custom create new view functionality,after selecting the condition i have to store the data in to some object .is this possible to achieve the functionality??Could you please ...
2
votes
0answers
589 views

Repeat tab containing dynamic components within an apex:tabpanel

Suppose we have n tabs within a tab panel in a visualforce page. All of the tabs contain the same markup, but their content is dynamic. So far the only way we have found to build this is to copy and ...
2
votes
1answer
2k views

Process Builder giving error The flow failed to access the value for [example] because it hasn't been set or assigned

I have a process builder which is giving error: unable to find field dataType for complex reference. In server log :The flow failed to access the value for myVariable_current.Product2....
1
vote
0answers
268 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="...
1
vote
0answers
343 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
62 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 ...
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
0answers
97 views

https://anysalesforceOrgurl/apexpages/apexcomponents.apexp

When you go to /apexpages/apexcomponents.apexp from your org instance, it redirects you to a page which shows all visualforce components of your org with component details and usage examples including ...
1
vote
0answers
109 views

Is there any way to develop a report using apex class or visualforcepage?

I have created reports from salesforce using reports and dashboard tab. I want to create a report using visual force page so that I can join more than 5 reports. Is there any way to do this.
1
vote
0answers
176 views

How to show SoftPhone layout into a custom VisualForce page?

I have a custom visual force page with a form to create a new lead when any new client call. The softphone call record is showing into left side of any pages in my salesforce environment, except into ...
1
vote
1answer
887 views

Assigning values to the inputfield in Modal PopUp

I have a Bootstrap Modal popUp containing an input field, in my visualforce page. I need to prepopulate the default value on that readonly input Textbox whenever user clicks the Deploy Product button. ...
1
vote
0answers
391 views

Custom Button redirecting to a VF page using URL as a content souce with validation

I'm facing an issue in redirecting to a VisualForce page using a custom button in which the button content source need to be an URL which need to validate a particular filed is null or not. If yes,it ...
1
vote
1answer
495 views

Display fields added on page layout in vf page

I have more then 25 record types with different page layout. Each page layout is having different fields added on page layout. I have a vf page which is rendered as PDF. On this page I have to get ...
1
vote
0answers
34 views

Change conditions in Dynamic Visualforce page

I have a Code in VF where once i select the Account it gives Account details as 2 fields. The fields appear only after i select the Account. I want to show the blank fields by default and populate the ...
1
vote
0answers
156 views

Apex:selectList dependent on ApexInputfied

`First, I am not a developer by any means so please be kind. :) I have created a custom Visualforce Log a Call page which makes use of URL Param button to auto populate a picklist field (Vertical__c) ...
1
vote
0answers
238 views

Multiple checkboxes form to create new records

I'm trying to update a jQuery mobile app that uses visual force to do a couple different things, one of which is to create multiple new Tasks based on checkboxes for picklist values. Each value ...
1
vote
1answer
36 views

Trying to populate fields based on contact lookup

Action support is refreshing overall page.Only following section should be refreshed.Not happening may be m missing small point. Vf page: <apex:pageblockSection title="Prepared For" columns="2" ...
1
vote
1answer
182 views

Lookup fields appear with the Lookup button on record edit pages

Lookup fields appear with the Lookup button on record edit pages How can i make it in my VF Page ?
1
vote
1answer
158 views

How to get URL for Go button in Tab Homepage

Hi i am using custom vf page for Tab Homepage. I need Go button that redirecting to standard list view page. what is the url for redirecting to list view page.
1
vote
1answer
2k views

rerender attribute of command button not working to display charts

I have 3 apex:commandButton tags on my Visualforce Page. One of them displays text and the other two are used to display <apex:chart>. Now I don't know if it is possible but the chart that I ...
1
vote
2answers
564 views

Visualforce table display

I have created table using <table> tags. In that table Column Header values are coming dynamically from Apex class as a List<string>. While displaying it on the Visualforce page I am using ...
1
vote
0answers
2k views

Enable/disable fields on create page based on picklist value using reRender

I'm creating a Hospital Management application that has a custom object GH_Patient__c. There is a picklist field GH_Patient_Type__c which has 2 values - In-Patient and Out-Patient. My Requirement is ...
1
vote
0answers
807 views

Custom object string field bind to date type

I have a custom object, that has a picklist (populated from accounts SObject) and a text field (call it 'Value') that is dynamic in nature. Now if the user selects name from => Value field would be a ...
1
vote
0answers
767 views

How to apply pagination and sorting with custom list views on visualforce page

Pagination and sorting is not working when creating custom list view on visualforce page(using selectlist)
1
vote
1answer
1k views

Sorting functionality using dynamic soql

I have created a visual force page in Account page that displays related opportunities by RecordType(5 Records at a time) for the given Account and when click on Go to List it directs to new VF page ...
0
votes
0answers
17 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
0answers
31 views

How do I display multiple fieldsets on a vf page using apex:repeat?

I have a custom metadata type with the following fields: Fieldsets referred Object Name I have a requirement in which I need to show these multiple fieldsets on a vf page for that particular object....
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....
0
votes
0answers
15 views

Dynamic Filters on a dashboard

I have a custom object "Muse Product". This has 2 custom fields: Supplier and Supplier PO. I am trying to create a report that shows the number of POs a supplier has. Example, Supplier 1 has PO ABC ...
0
votes
0answers
18 views

Nested Json Data on VF page salesforce

I have a json data in nested array object format.I want to show it on VF page in table format. my data formate is like: { "results": [ { "engagement": { "id": 29090716, "...
0
votes
1answer
25 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 ...
0
votes
0answers
48 views

Dependent picklist not working when rendered in output panel of VisualForce Page

This is a small snippet of a bigger scenario. Here I have an empty div where I dump the full div section of the reRendered output panel. I am doing this so, because in my main codebase we have a ...
0
votes
0answers
25 views

URL for creating new listview of any object salesforce classic

URL to create new listview in Salesforce classic. https://naXX.salesforce.com/ui/list/FilterEditPage?ftype=c For contact ftype = "c", Account: ftype="a" and Case: ftype="t". How to get ftype value ...
0
votes
0answers
33 views

Visualforce page to create related custom record on Opportunity

I have this custom object that describes a Client Visit, and it's related to an opportunity (there's a Master-Detail Relationship on this custom object to the Opportunity object). I want to be able ...
0
votes
0answers
33 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
63 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
43 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
51 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
269 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 ...
0
votes
1answer
227 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 ...
0
votes
0answers
49 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 ...