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

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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?