Jump to content

Adding a new field depending of other field

  • Please log in to reply
No replies to this topic

#1 AndresSEGC



  • Members
  • Pip
  • 5 posts

Posted 28 September 2020 - 03:55 PM



i need to add a writable field only when the user select "yes", otherwise that field need to be hidden. 


How can i do that?


I tried JS, selecting the field and showing the other field, but didnt work.

I tried with CodeIgniter code, calling a function in a CallbackAfterInsert, but nothing...

$crud->callbackAfterInsert(function ($stateParameters) {
			if($stateParameters->data['is_group'] == 1){
			    return $stateParameters;			
			    return $stateParameters;				

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users