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?
- Add an <apex:actionFunction> within the <apex:selectOptions>.
- Add an <apex:actionFunction> within the <apex:selectList>.
- Add an <apex:actionSupport> within the <apex:selectList>.
- Add an <apex:actionSupport> within the <apex:selectOptions>.
Reveal Solution Next Question