UI Action Script that will show Form Section

jxa7987
Tera Expert

Hi, Would like to ask for some help with script that will show the Form Section (Privacy) once the UI Action (Privacy Incident) is clicked? 

find_real_file.png

 

 

1 ACCEPTED SOLUTION

jxa7987
Tera Expert

I'm able to resolve using this line from this thread

https://community.servicenow.com/community?id=community_question&sys_id=1609cfa1db5cdbc01dcaf3231f96198f&view_source=searchResult

 

View solution in original post

6 REPLIES 6

Alikutty A
Tera Sage

Hi,

You need to select the client checkbox on your UI action and then add this script.

  g_form.setSectionDisplay('privacy', true);

 

You should also hide this section when form is loaded. So add this script in an OnLoad client script.

  g_form.setSectionDisplay('privacy', false);

 

Hello,

Have you tried it out? 

Hi, I already tried it but we want it go directly to the exact form section when UI action is clicked. Any inputs?