I am using agile toolkit code for developing an application , i do have dropdown that get values from database, I want to show selected value from field 1 to field 2 without submit any thing.
$form->addField('field1', ['caption' => 'Field 1', 'DropDown', 'values'=> $values,'isMultiple' => true ,'readonly' => false, ['dropdownOptions' => ['fullTextSearch' => true]]]);
$field1 = $form->model['field1'];
$form->addField('field2', ['caption' => 'Field 2', 'DropDown', 'values'=> $field1,'isMultiple' => true ,'readonly' => false, ['dropdownOptions' => ['fullTextSearch' => true]]]);
$form->model->set('specificapps',$field1 );
I have used different way but no luck , can you guys show me an example how it's DONE !
source https://stackoverflow.com/questions/68957995/agile-toolkit-atk4-php-set-field-value-based-on-anther-field-value-without-submi
Comments
Post a Comment