Welcome Guest, Not a member yet? Register   Sign In
validation of a checkbox using the "required" rule
#1

[eluser]CIfan1000[/eluser]
If in my controller I have the following validation of a checkbox:

$rules['CheckboxUserAgreement'] = "required";

Then, if the checkbox is not checked, the view containing the checkbox displays:

The User agreement checkbox field must have a value.

I would like it to say: The User agreement checkbox field is required.

Please help.


Messages In This Thread
validation of a checkbox using the "required" rule - by El Forum - 10-12-2008, 02:48 PM
validation of a checkbox using the "required" rule - by El Forum - 10-12-2008, 03:05 PM
validation of a checkbox using the "required" rule - by El Forum - 10-12-2008, 03:44 PM
validation of a checkbox using the "required" rule - by El Forum - 10-12-2008, 03:49 PM
validation of a checkbox using the "required" rule - by El Forum - 10-13-2008, 12:01 AM
validation of a checkbox using the "required" rule - by El Forum - 10-13-2008, 05:37 AM
validation of a checkbox using the "required" rule - by El Forum - 10-13-2008, 06:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB