
Dave
Staff
/ Moderator

Mar 17, 2009, 11:21 AM
Post #2 of 2
(2592 views)
Shortcut
|
|
Re: [kblm] Specify a default option for a dropdown list
[In reply to]
|
Can't Post
|
|
Hi Kevin, No, there's currently no way to set a default list value. A few options, you can show a default value if none is selected (you'd have to make the field not-required) like this: <?php if (!$record['fieldname']): ?> ... this is shown if no value is selected ... <?php endif ?> Or if you really wanted that feature I can give you instructions on how to remove that line from the code that adds the <select> and that would make the first option the default. Hope that helps, let me know if you want more details on either of those approaches. Dave Edis - Senior Developer interactivetools.com
|