![]() |
Validation Form required and callback dont function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Validation Form required and callback dont function (/showthread.php?tid=80176) |
Validation Form required and callback dont function - mcarruitero - 09-23-2021 HI I am in trouble. Codeigniter 3 I am using validation form using required and a callback funcion But it dont works, I am in edit controller and view. When i call the callback function with a celular thats exists it tells me the celular exists but When i try to change the celular to another it tells me Debe ingresar el celular, Just cannot change the celular number to another new <div class="form-group"> <label for="volasoccel">Celular</label><?php echo form_error('volasoccel', '<span class="alerta"> *', '</span>'); ?> <input value="<?php echo $volasoc[0]->Celular; ?>" required type="text" name="volasoccel" class="form-control" id="volasoccel" placeholder="Celular" > </div> $this->form_validation->set_rules('volasoccel', 'Celular', 'required|callback_volasoccel_check[tvolasoc.TVOLASOC_CEL]|numeric|xss_clean', array('required' => 'Debe ingresar el Celular')); THis is happendnig also with the email just there is an error I can see Can someone help me |