Welcome Guest, Not a member yet? Register   Sign In
Form validate question ?
#1

[eluser]nebi[/eluser]
Hi,

I coding a page there user can build forms . Now i want make so that the user can select wich field that is required , so wonder a easy way in the controller to validate the form without knowing the name of the field and what type of form (example checkbox,text etc..) , like the validation is looking for class="required" in the form or something like that.


Thanks in advance
#2

[eluser]vitoco[/eluser]
if the user can build forms, i think that for each input, select or textarea that it's added with a name, you must create automatically a checkbox with the same name +'_required' , so the user can checked...and you know in the controller if the field was set as required

Saludos




Theme © iAndrew 2016 - Forum software by © MyBB