UI Policy Actions list not visible

swethachunduri
Kilo Contributor

Hello,

I'm trying to hide a form section when a certain condition is met. I created a UI policy and saved it but the UI policy actions list is not being displayed upon saving. I'm using the latest patch of Helsinki. How can I resolve this issue?

Thank you.

Regards,

Swetha Chunduri

21 REPLIES 21

You need an onChange client script on that field and an onLoad client script for this. Put this code in there



onChange client script:



if(newValue=='value goes here'){


g_form.setSectionDisplay('section name',false);


}


else{


g_form.setSectionDisplay('section name',true);


}



onLoad client script:



if(g_form.getValue('field name')=='value goes here'){


g_form.setSectionDisplay('section name',false);


}


I tried this, but when I change the field value the section display doesnt change.


There must be errors. Open the browser console, and see what errors it show?


GlideTabs2 findTabIndexByName could not find details this is what the console reads


Can you post the script and screenshot of the browser console.