The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Requiring an option value to be selected
How, in vBulletin, does one require an option value to be selected. With HTML forms you can just say "required" but I don't see this option available.
I have an option that is required in the newreply template. If they click to submit their message and the option value is empty I would like the post to not go through. I don't want it to default to a value either. Its something the user has to select. One way I found was to add something like this in the plugin code.. but is there a better way? Code:
if (!$vbulletin->GPC['xconditions'] AND strlen($vbulletin->GPC['xconditions']) < 1) { $errors[] = 'No Condition Selected. Please select a condition below.'; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|