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

AbhishekGardade
Giga Sage

Hello Milan,

Check out this: GO TO Form Section, In Caption you need to search your section name:

find_real_file.png

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

Ahmmed Ali
Mega Sage

Hello,

 

You can just have a alert on in the client script "alert(g_form.getSections());" and here you will get all section names. Just copy the one you want and paste in your code. This is what I generally do 🙂

 

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