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. 

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

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

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.

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

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

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