How to hide form section based on condition

Milan13
Giga Expert

Hello,

I need to hide below form section (highlighted) based on major_incident_state value on the incident form.

I guess the code should be in a client script and llok something like this:

var sections = g_form.getSections();

g_form.setSectionDisplay('mi_email_template', false);

I am just wondering where to find "system name" of the form section "MI Email Template"...

Appreciate any advice on this,

Milan

find_real_file.png

1 ACCEPTED SOLUTION
6 REPLIES 6

One correction, the correct function  is g_form.getSectionNames();

 

so use alert(g_form.getSectionNames());

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Ashvini Kadus1
Kilo Guru

Hi Milan,

 

The 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".

you can check yours with : "mi_emailtemplate"

 

 

Kindly mark correct or helpful if it helps you to solve your problem.

 

Thank You,

Ashvini k