Dropdown fields have the following settings:
- Dropdown Options – Define the options that will be available in the field. You even get to set the option values and labels separately, and choose which one should be selected by default.
The code syntax to retrieve them in the view file would be as follows:-
<?= $fieldHandle ?> (This will return the actual selected value as a String)
During the field creation phase, please enter the number of drop down options as a comma separated line eg. option1,option2,option3