Making a tab mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:05 AM - edited 09-02-2024 12:14 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:09 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:15 AM - edited 09-02-2024 12:15 AM
I need to make section mandatory As in the example I attached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:20 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:28 AM - edited 09-02-2024 12:31 AM
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?