Jump to content


Dropdown on change action

dropdown

  • Please log in to reply
2 replies to this topic

#1 Lucas

Lucas

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationMedellin - Colombia

Posted 04 February 2014 - 04:40 PM

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

 

 

 

 

dropdown_on_change.png



#2 Lucas

Lucas

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationMedellin - Colombia

Posted 04 February 2014 - 04:41 PM

When change dorpdown to a specific date



#3 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users