Contents
- 1 Do you display fields based on picklist selection?
- 2 When to use a picklist on an edit page?
- 3 How to display pick list values in apex?
- 4 How to show or hide a field in Visualforce?
- 5 How does a pageblock table work in Salesforce?
- 6 How to create picklists and field dependencies in Salesforce?
- 7 When to use JavaScript in Page Block table?
- 8 When to display the read only field in Visualforce?
Do you display fields based on picklist selection?
One of the columns is a picklist and i need to display/not display fields according to selection on the picklist.
When do you hide a field on a lead page?
For example, if a field for “software interest” is selected on a lead page, it would be nice if a section and/or fields related to capturing more information on “Software” is displayed. If the field is not selected, then this section and/or fields remain hidden.
When to use a picklist on an edit page?
Im simulating the problem below. For example, we have a product object and there we have “product name” picklist. when a user selects “product name” = Car , then the edit page should dynamically render and should show the fields related ONLY to car.
How to show and hide fields in Salesforce?
Put both fields in the same column and use the “rendered” attribute to dynamically show/hide the field using an if-statement. Then you set up an AJAX onchange event handler for the delivery__c field using the actionSupport tag.
How to display pick list values in apex?
If you want to display pick list values in your custom page through dyanamic apex .You can check below link it will help . If you want in a string array or list then you can use below code . Let us know if it helps !! Please try below code.
Can a dependent picklist be displayed in Visualforce?
Dependent picklists can only be displayed on Visualforce pages with Salesforce API version 19.0 or higher. For more information, see Dependent Picklists in the Salesforce online help. For this example, we’ll be adding a dependent picklist, Subcategories, to a Visualforce page.
How to show or hide a field in Visualforce?
One way to do this would be to use partial-page refreshes in Visualforce. Put both fields in the same column and use the “rendered” attribute to dynamically show/hide the field using an if-statement. Then you set up an AJAX onchange event handler for the delivery__c field using the actionSupport tag.
How to create a custom picklist in apex?
First, create this custom picklist: From the object management settings for accounts, go to the fields area, and then click New. Choose Picklist, and then click Next. Enter Subcategories for the Field Label. Click Next twice, then click Save. From the object management settings for accounts, go to the fields area.
How does a pageblock table work in Salesforce?
A list of data displayed as a table within either an or component, similar to a related list or list view in a standard Salesforce page. Like an , an is defined by iterating over a set of data, displaying information about one item of data per row.
Which is the first element in the page block table?
The first element in the iteration visibly rendered in the page block table, where 0 is the index of the first element in the set of data specified by the value attribute. For example, if you did not want to display the first two elements in the set of records specified by the value attribute, set first=”2″.
How to create picklists and field dependencies in Salesforce?
Start by creating a global picklist value set called Region. From Setup, click Home. Enter Picklist Value Sets in the Quick Find box and select Picklist Value Sets. Click New and fill in the details. Click Save. Next, create a custom picklist field called Region on the lead and account objects.
What are the values of the pageblocktable in Salesforce?
The position of the rendered HTML table with respect to the page. Possible values include “left”, “center”, or “right”. If left unspecified, this value defaults to “left”. This attribute was deprecated in Salesforce API version 18.0 and has no effect on the page.
When to use JavaScript in Page Block table?
The JavaScript invoked if the onRowClick event occurs–that is, if the user clicks a row in the page block table. The JavaScript invoked if the onRowDblClick event occurs–that is, if the user clicks a row in the page block list table.
How many items can be in apex pageblocktable?
The set of data can contain up to 1,000 items, or 10,000 items when the page is executed in read-only mode. The body of the contains one or more column components that specify what information should be displayed for each item of data, similar to a table.
When to display the read only field in Visualforce?
The same information can be written to both fields using either a trigger or field-update rule. Display the read-only when it’s closed, else display the read-write field. Of course, that’s probably easier to do in Visualforce than not. Thanks for contributing an answer to Stack Overflow!