Dynamic default value a menu box troubles
am 14.05.2007 16:02:51 von djjohnstI am trying to fill out a form from a record set and have a few menu
boxes that have a static list of values. I want to fill out the
default value with the variable from the recordset. The one solution i
thought of is as follows:
<% if WorkshopType = "Information Session" then
%>
<% elseif WorkshopType = "Interview Practice Clinic" then
%>
selected>Interview Practice Clinic
<% elseif WorkshopType = "Senior Job Search Seminar" then
%>
selected>Senior Job Search Seminar
<%end if%>
This works great. However, this menu only had 3 options so it was easy
to implement. I also have menus with 31 different options. The way i
came up with was to do something like this:
Yes, this works, but it lists the default value twice. This isn't the
end of the world but I would like to clean it up a bit. Is there a
better way to do this?
Re: Dynamic default value a menu box troubles
am 14.05.2007 16:27:53 von djjohnstNevermind, I guess the easiest way for me to do it is by doing it like
this: