Required Field Logic

 'logic' => 
            array (
              'required' => 
              array (
                'key' => 'required',
                'modes' => 
                array (
                  0 => 'edit',
                  1 => 'create',
                ),
                'params' => 
                array (
                  'fieldDependencies' => 
                  array (
                    0 => 'status_c',
                  ),
                  'activeOnFields' => 
                  array (
                    'status_c' => 
                    array (
                      0 => 'Closed_Lost',
                      1 => 'Closed_cancel_repeding',
                      2 => 'Closed_No_Go',
                    ),
                  ),
                ),
              ),
            ),

i am using this code but it is not working only working fi i write one value for status

Can you change this to the following and try if it works

		 'activeOnFields' => [
		'status_c' => [
			['operator' => 'is-equal','values' => ['Closed_Lost','Closed_cancel_repeding','Closed_No_Go']]
		]
	],
1 Like