• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show all validation errors for a form field

#1
Is there a way to show all validation errors for one form field that contains multiple rules?
The code below only shows one error if the field is not entered.


PHP Code:
form_validation->set_rules('eid''Emergency ID''required|min_length[8]|max_length[8], array('required' => 'You MUST provide an %s.', 'min_length' => 'MIN Length 8 for %s.')); 
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.