Gossamer Forum
Home : Products : Gossamer Links : Discussions :

modify ENUM

Quote Reply
modify ENUM
Could someone tell me the HTML code to use in the include_form.html for an ENUM column type? I'm trying to get the field entry that's in the database as the selected value of the pull down menu in the modify form. Any ideas?

Thanks

Joey

Quote Reply
Re: modify ENUM In reply to
Hi,

Try:

<select name="column_name">
<option<%if column_name eq 'option1'%> checked<%endif%>> Option1
<option<%if column_name eq 'option2'%> checked<%endif%>> Option2
...
</select>

Let me know if that doesn't make sense..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: modify ENUM In reply to
Thanks Alex. Appreciate it.