CodeIgniter Forums
Adding additional validation rules to forms - 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: Adding additional validation rules to forms (/showthread.php?tid=20013)



Adding additional validation rules to forms - El Forum - 06-25-2009

[eluser]transition[/eluser]
So i have a form that uses the standard form validation class and that works just fine. Once the form is validated i use the data to call an API. I'm trying to make sure if that API call fails that my form returns back re-populated with the error message. Any suggestions on how i can somehow include this API call as a part of the form validation?


Adding additional validation rules to forms - El Forum - 06-25-2009

[eluser]transition[/eluser]
Is this really a dumb question or does know one know?


Adding additional validation rules to forms - El Forum - 06-25-2009

[eluser]mmiranda[/eluser]
you should try callback functions, its all explained in the userguide