Welcome Guest, Not a member yet? Register   Sign In
How to inherit attribute for hidden/show form field
#5

(10-30-2019, 02:03 PM)Wouter60 Wrote: Create validation rules only for fields that are visible.
E.g. field10 and field11 are only visible if field4 has a value:
PHP Code:
if ($this->input->post('field4')) {
  $this->form_validation->set_rules('field10''Field 10''required' );
  $this->form_validation->set_rules('field11''Field 11''required' );

Hello Wouter, i want the fields when visible to take up the attribute to be required , i know how to implement the required form on controller form but if i set this for all the fields, it will require it if it is visble or not
Reply


Messages In This Thread
RE: How to inherit attribute for hidden/show form field - by olamideX - 10-30-2019, 02:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB