Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Making a tab mandatory

Shir Sharvit
Tera Contributor

hey


I want a certain condition when a field in the incident form is equal to the value 5

A section will become mandatory and the fields it contains will also become mandatory.

 

thanks, Shir

18 REPLIES 18

Dr Atul G- LNG
Tera Patron

Hi @Shir Sharvit 

 

Greetings!!

 

You can use the UI policy for this, but in this you cant make tab mandatory, you can field under tab mandatory. UI policy is 100% zero code. 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

ShirSharvit_0-1725261282741.png

I need to make section mandatory As in the example I attached

Hi @Shir Sharvit 

 

As far as I know, we cant make the section mandatory, the field need to be made mandatory.

 

https://www.servicenow.com/community/developer-forum/mandatory-tab-form-section/m-p/1542840

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

 g_tabs2Sections.markMandatoryTabs();

 

What should I replace at the beginning of the code before the dot  (g_tabs2Sections)?
The name of the section that I want to make mandatory?