validation if_exist - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: validation if_exist (/showthread.php?tid=74876) |
validation if_exist - aparedesv - 11-19-2019 Hi, this rule is correct? 'nom_anterior' => ['rules' => 'if_exist|min_length[2]|max_length[100]'], I get this when the field isn't value: The nom_anterior field must be at least 2 characters in length. Thanks, Andreu. RE: validation if_exist - aparedesv - 11-20-2019 Sorry, the correct rule for this case is "permit_empty" |