Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Automatic Dropdown List

Quote Reply
Automatic Dropdown List
Hi-

Is it possible to display a custom field with multiple values in a dropdown box on the User Signup page and the User Profile templates? Would this require a global?

In other words, if I have a custom field that has the user choose the state they are from, then the list would have values such as:

Alabama
Alaska
Arizona
California
etc.
etc.

I defined all of these form values when setting up the custom field, and I'm hoping there is a way to have the drop down box automatically created on the templates, rather than having to hand code all of the individual options on the templates...

--Frank
Quote Reply
Re: [FrankM] Automatic Dropdown List In reply to
Hi,

I'm afraid you'd need to hand code it. Basically it looks like:

<select name="fieldname">
<option value="Alaska"<%if fieldname eq "Alaska"%> checked<%endif%>>Alaska
...
</select>

Cheers,

Alex
--
Gossamer Threads Inc.