Welcome Guest, Not a member yet? Register   Sign In
Custom Validation Output
#1

[eluser]RobbieL[/eluser]
Currently, when I use CI validation code, it displays any errors with the form above the form field. Is there anyway to grab each individial form error, and display them differently?

For instance, if I have a form that asks for a username and email. Instead of the error telling the user the field wasn't filled being displayed above the form, can I customise that output and place each error under the corresponding form field. So the blank username field error under the username field etc ...

Thanks.
#2

[eluser]xwero[/eluser]
check the user guide validation page showing errors individually. It's the same as populating a field but with the _error postfix.
#3

[eluser]RobbieL[/eluser]
Can't believe I didn't notice that at the bottom! Silly me.

Thanks for the help, much appreciated. Smile
#4

[eluser]Derek Allard[/eluser]
No prob, there's a lot to absorb at first. welcome to CI Robbie!




Theme © iAndrew 2016 - Forum software by © MyBB