Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide sections in form incident

Shir Sharvit
Tera Contributor

Hi,

I want that under certain conditions:
that when the location of the caller_id is Londrina ADM
And when the company is Adama Brasil S.A.

So I want to hide the form section from the form.

ShirSharvit_0-1719389468860.png

 

Thanks, Shir

10 REPLIES 10

ShirSharvit_0-1719393679055.png

 

This not working

 

Hello @Shir Sharvit 

 

I compared the code, you provided in the screenshot and found that you reversed the condition.

So, will you please check and confirm the provided solution by @swathisarang98 is still not working.

I tried with same code, and its working fine for me.

 

Regards,

Pradnya Taral.

@Shir Sharvit can you uncomment the alert and section name and run the script and let me know whether you are getting alert ?

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Hello @Shir Sharvit 

 

I compared the code, you provided in the screenshot and found that you reversed the condition.

So, will you please check and confirm the provided solution by @swathisarang98 is still not working.

I tried with same code, and its working fine for me.

 

Regards,

Pradnya Taral.

@Shir Sharvit change the line number 11 to false and line number 16 to true it should work 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang