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:11 AM
Hey Shir you can use a combination of client scripts and UI policies. Like you can use client script like
if (newValue == '5') {
g_form.setMandatory('tab_name', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 12:53 AM
Hi @Shir Sharvit,
As @Dr Atul G- LNG mentioned, to achieve your requirement you need to write UI Policy.
g_tabs2Sections.markMandatoryTabs(); - this function is just to Displays a red indicator on tabs that have mandatory fields.
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 01:04 AM
I need to Displays a red indicator on tabs that have mandator.
The tab I need to add is called 'lotem' and I don't know how to use the function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 02:23 AM
Once any field from section become mandatory, Section Automatically displays asterisk.
In above screenshot,
I just set Test_06 field mandatory, section_02_iotem automatically populating asterisk.
In my opinion, no need to write any separate client to achieve your requirement.
Just set field to mandatory using UI policy.
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 02:27 AM
Hi, I did exactly that and it didn't put the tab as mandatory