Do you often find yourself making <select> objects over and over but then want to populate the "selected" part of the option statement automatically? Well, this tag is for you. I wrote this because I'm tried of hand-coding it all the time.
I guess a more complex version could be made that would add the ability to have different values with the display value, but this works for most cases.
Parameters
-name
string, required
name of the select statement
-values
string, required
values of the items in <option> seperated by a pipe " | "
-current
string, required
The current value to be selected in the select list.
Sample Usage
Usage:
-name is the name of the select statement
-values is the values list of the options
-current is the current value
[selection_box: -name='subscribe', -values='Yes|No', -current='Yes']
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.