How to hide a section using a UI Policy

Tracey Wilmot
Tera Contributor

Hi all,

I've created a new section on the Application form for 'Cloud Service'.  If the 'Type' is selected as Cloud Service, the new tab 'Cloud Service' should appear:

TraceyWilmot_0-1665506973681.png

I would like to achieve this with a UI Policy but I can't get it to work:

TraceyWilmot_1-1665507112538.pngTraceyWilmot_2-1665507153119.png

Any ideas, greatly appreciated 🙂

 

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

in your script, try 'cloud_service' (lower case)

 

 

sectionNameStringThe section name is lower case with an underscore replacing the first space in the name, and with the remaining spaces being removed, for example "Section Four is Here" becomes "section_fourishere". Other non-alphanumeric characters, such as ampersand (&), are removed. Section names can be found by using the getSectionNames() method.

 

View solution in original post

5 REPLIES 5

PA001
Mega Sage

Hello Tracy,

 

Can you try with below code 

 

function onCondition() {

 

var sections=g_form.getSectionNames();

 

g_form.setSectionDisplay(sections[0],false); //you can use 1/2/3 instead of 0 depending upon the position of your Cloud Service section

 

}

Please Hit like, Helpful or Correct depending on the impact of the response