Online Chat
 Call Us: 
1-877-744-1221
Browse Submit a Ticket
 
Advanced Search
Tools
Rss Categories

How do I make selection box required?

Author: Eileen Wilde Reference Number: AA-00189 Views: 8450 Last Updated: 08/10/2009 11:44 AM 0 Rating/ Voters

The same way as for the other field types. You have to put the name of this field as a required_fields in config.php.

Example:

required_fields = department (Department)

Also, you need to create a default option with a blank value.

Example:

<select name="department">
<option value="" selected="selected">Select...</option>
<option value="sales">Sales Department</option>
<option value="support">Support Department</option>
<option value="billing">Billing Department</option>
</select>