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

Yes mate, the actual name of section. 

*************************************************************************************************************
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]

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

this code: (lotem is the section)

And the code doesn't work and it doesn't show me the section as a required field

 

if (f_form.getValue('u_unit') == '6';

lotem.markMandatoryTabs();

Hi @Shir Sharvit 

 

I am not a developer so I cant help much with code, But I will still say, use UI policy and make all fields mandatory of that section, instead of writing code. 

 

@Sandeep Rajput  @Mark Manders can you help here.

*************************************************************************************************************
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]

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

ok,

It still doesn't give me the mandatory asterisk on the section

I need to Displays a red indicator on tabs that have mandatory. The tab I need to add is called 'lotem' and I don't know how to use the function