BuildOptionList
Overview
Builds a list of options from which a message recipient can select. Repeat value and presentation names for all options on the list.Syntax
BuildOptionList(1, 2, 3)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Option selected by default |
| 2 | string | Required | Value of first option on list |
| 3 | string | Required | Presentation name of first option on list |
Usage
SET @AttribA=2
%%=BuildOptionList(AttribA, '1', 'One', '2', 'Two', '3', 'Three')=%%
The system returns:
<option value='1'>One</option>
<option value='2' selected='selected'>Two</option>
<option value='3'>Three</option>