Online Chat
 Call Us: 
Browse Submit a Ticket
Advanced Search
Rss Categories

How do I make selection box required?

Author: Eileen Wilde Reference Number: AA-00189 Views: 7094 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.


required_fields = department (Department)

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


<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>