CodeIgniter Forums
Validation triggering from page posting data to another page requiring validation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Validation triggering from page posting data to another page requiring validation (/thread-53480.html)



Validation triggering from page posting data to another page requiring validation - El Forum - 07-26-2012

[eluser]Koodoo Creative[/eluser]
hi all,

Got quite an annoying quirk going on with CI validation;

1. I have a 4 step form, has to be done this way for the user interactions.

2. Step 1 has two drop down menus; you select the data, click next, this goes to Step 2

3. In Step 2, there is further validation (just for step 2), however coming from Step 1 with 2 POST values always triggers the Step 2 form validation, this happens even before any attempt is made to POST Step 2.

Wondering how people get round this, it makes using CI validation in stepped forms a little problematic!

Thanks in advance


EDIT: Managed to solve this issue, will post some example code to benefit others at some point :-)