List Saved to Hashtag Variable
This page uses a Hashtag List with a Save directive.
In this example, the List content is reused as Select Options in an HTML Form.
Processing this Hashtag Markup:
<# start list for items;
save to item.options;
#>
<# start row #>
<option value="<# id #>"><# name as html #></option>
<# end row #>
<# end list #>
<form>
Choose an item:
<select name="item1" required>
<option value=""></option>
<#[item.options]#>
</select><br>
<br>
Choose another item:
<select name="item2" required>
<option value=""></option>
<#[item.options]#>
</select>
</form>