Salesforce
PDII · Question #402
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. <apex:selectList value="{!selectedIndustry}">…
The correct answer is C. Add an <apex:actionSupport> within the <apex:selectList>. See the full explanation below for the reasoning.
Question
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. <apex:selectList value="{!selectedIndustry}"> <apex:selectOptions values="{!industries}"/> </apex:selectList> When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry. What is the optimal way to implement this?
Options
- AAdd an apex:actionFunction within the apex:selectOptions.
- BAdd an apex:actionFunction within the apex:selectList.
- CAdd an apex:actionSupport within the apex:selectList.
- DAdd an apex:actionSupport within the apex:selectOptions.
How the community answered
(23 responses)- A17% (4)
- B9% (2)
- C70% (16)
- D4% (1)
Community Discussion
No community discussion yet for this question.