[ic] Display tag & SELECT

Mike Heins interchange-users@icdevgroup.org
Fri Aug 23 09:30:01 2002


Quoting Howard Lowndes (lannet@lannet.com.au):
> In the Display tag when using the <SELECT> form control and the <OPTION>
> items, is there any way to have the word SELECTED to be included for
> items under <OPTION>.
> 
> The particular line I am looking at is from pages/account.html:
> 
> [display table=userdb type=multiple column=mail_list key="[data session username]"]
> 

Actually, the proper values should be checked by default.
You can assure that with:

[display
	table=userdb
	type=multiple
	column=mail_list
	default="[value mail_list]"
	key="[data session username]"]

If you want to make a default:

[display
	table=userdb
	type=multiple
	column=mail_list
	default="[either][value mail_list][or]alerts upgrades[/either]"
	key="[data session username]"]

IC 4.9 even does something with the info -- I added a little "Customer
Mailing" function.

-- 

Perusion -- Expert Interchange Consulting    http://perusion.com
phone +1.513.523.7621 <mike@perusion.com>

Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer