Making a dropdown field a mandatory field
Making a dropdown field a mandatory field
Ganeshmurthy
Posts: 1Questions: 1Answers: 0
Hi All,
I have a dropdown field in datatables and want to make it mandatory field. If the value is "select one' then I should prompt a message below the dropdown field. EditorField.error works only for textbox.
Can anyone shed some light to get this resolved?
Thanks in advance.
Ganesh
This discussion has been closed.
Answers
I am looking for a simple way to say an Editor field is mandatory. Akin to the "required" attribute in html5. Surprisingly, cant find any. Kindly advise,
Thanks,
Harsha
Hi Harsha,
There are a few options for this. A CSS class for the fields in question that would style them differently is on option. An asterisk in the field label is another option.
Allan
Allan,
We ended up writing a javascript validation function and passed an array of field names from each table requiring validation. Coupled with visual cues - like red asterisk to prompt the user.
And in the table "preSubmit" -