form validation on form with dynamic fields - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: form validation on form with dynamic fields (/showthread.php?tid=40403) |
form validation on form with dynamic fields - El Forum - 04-07-2011 [eluser]Brad K Morse[/eluser] I am using javascript to add extra fields, based on how many the user adds. I want to retain the data if the form validation does not return true, using set_value() Since the fields will be dynamically generated by the user, is it possible to still use the form_validation w/ set_value() to accomplish this or I'll need to use javascript to restrict the user from submitting the form until all requirements have been met? I think validating with javascript over form_validation will be the answer, but I wanted to make sure before proceeding, thank you. form validation on form with dynamic fields - El Forum - 04-07-2011 [eluser]dakipro[/eluser] You can probably use array for extra fields and for validation, check the doc if it mentions (i think it does) and test |