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

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' );

Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB