Primary Tag Pair¶
Calling your Multiselect field with a tag pair allows you to fully customize the output:
<p>
I like
{my_multiselect_field backspace="2"}{option}, {/my_multiselect_field}.
</p>
Tag Parameters¶
The primary tag pair supports the following parameters:
- sort
- Sorts the selected options alphabetically. Can be set to either “asc” or “desc”.
- backspace
- Strips the last X characters from the tag output.
Variable Tags¶
The following variable tags are available within the primary tag pair:
- {count}
- The current option’s index.
- {option}
- The current option’s value.
- {option_name}
- If you specified a label for your option, this is how you access it. Otherwise, it will return the same thing as {option}.
- switch
- Switch between multiple values based on the current option index.