Is it possible to use an enum field with a function defined as the data provider as a trigger for another fields visibility grid?

I have one enum field where there is no options parameter, instead, I am using a defined function.


I have a second field that has a visibility grid defined using the first field as the trigger.

$dictionary['Case']['fields']['pr_team']['visibility_grid'] = array (
'trigger' => 'pr_department',
'values' => ...

If I use the options parameter on the first field instead of a function the visibility grid works fine. However, when I set the data provider to a function the visibility grid no longer applies.
Am I doing something wrong, or is there a way around this?

Note: I am trying to avoid using JS so it will also work on sugar mobile.

Parents Reply Children
No Data