• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[CI4] Form validation with optional input

#1
Hi,

I have a form with data validation.
I have an optionnal input, with  a rule on it like 'min_length[3]' but if the user don't fill it, then the form will asked to enter at least 3 characters, how can I make it possible to apply the rule only when user fill it (I mean properly) ?
Reply

#2
use permit_empty
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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