V

Zero-value 'required' choice resource fields trigger validator error

  • Thread starter Thread starter vbresults
  • Start date Start date

Visitor Greeting

Welcome to NullWarehouse.com... We are currently seeking Mod's and Contributors. If you wish to apply for a Mod position then please click on Members dropdown arrow, then click on Staff App and fill it out completely and submit it. If you want to be a Contributor then start contributing and we will have our eye on you and take notice, something great could come of it.

  • We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
V

vbresults

Guest

I have a choice resource field where one of the choice keys is the string '0'. If the field is required, the validator does not detect the '0' and thinks no value was submitted in the form. There must be an empty call instead of isset somewhere.

Also, dropdown resource fields add an extra empty option instead of selecting the first in the list by default or having a 'default' setting, and the same is the case for radio fields.

Continue reading...
 
Similar content Most view View more
Back
Top Bottom