⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


Member Since 14 Aug 2019
Offline Last Active Oct 22 2020 08:15 AM

Topics I've Started

Adding a new field depending of other field

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;