⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Dropdown on change action



Lucas
  • profile picture
  • Member

Posted 04 February 2014 - 16:40 PM

When I change the dropdown to a specific data field to change another field to requiered field

 

 

 

 

dropdown_on_change.png


Lucas
  • profile picture
  • Member

Posted 04 February 2014 - 16:41 PM

When change dorpdown to a specific date


Amit Shah
  • profile picture
  • Member

Posted 05 February 2014 - 10:31 AM

Hi there,

 

i was in a certain same scenario... where i was to make another field required if in case the value of first field was not filled up

My scenario .. if barcode is not present - it should make promo url required

$required_if = $this->input->post('barcode') ? '' : '|callback_check_url_or_barcode' ;
$crud->set_rules('promourl', 'Promo URL', 'trim'. $required_if);

similarly u can set it for your code / system too