32 views

Symptoms


When using a UI policy to hide a Ui action based on a condition. Only the UI action on the top header of the form will be hidden. The same UI action on the bottom of the form will remain. 

 

Release


all releases

Cause


Scripting issue on how to properly hide a UI Action via Ui policy.

Resolution


For our UI action name "test". In order to hide both the top and bottom UI actions. We need to input the following into the corresponding UI policy "Execute if True" and "Execute if False" fields.

Execute if True: 
function onCondition() { 
$j('[data-action-name=test]').show(); 

Execute if False: 
function onCondition() { 
$j('[data-action-name=test]').hide(); 

 

This will resolve the issue of hiding both top and bottom UI actions on the form via UI policy.

Additional Information


UI action "test" example screenshot:

 UI Policy Script using our "test" UI action as an example:

Article Information

Last Updated:2018-09-03 16:15:46
Published:2018-09-03