Lasso Soft Inc. > Home


AuthorMarc Pope
CategoryCustom Tag
LicensePublic Domain
Posted04 Jul 2006
Updated04 Jul 2006
More by this author...


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.

Sample 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.

	local: 'result'=(string);
	#result += '\r\n\r\n';
	return: @#result;


No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft