Welcome Guest, Not a member yet? Register   Sign In
Get info from Validation Module
#1

[eluser]justmelat[/eluser]
We've inherited a codeigniter app, basically an auto-generating form. We want to try something different with the "required" fields but I need to know which fields has been flagged as required. Because of the validation module that codeigniter uses, the fields don't show in the code which one are required. Is there a way, using the onload event, and referencing the validation code to pull all fields that have been mark as required, in to an array?

So in short:

user creates form, [form design page has checkbox that lets user select which fields are/are not required],
open the new form page,
go to validation module,
generate list/array of fields[id's] that are required.

Can this be done, if so how?




Theme © iAndrew 2016 - Forum software by © MyBB