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

vchaudhary0
Tera Contributor

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);

}

Rohit99
Mega Sage

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




 

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

Once any field from section become mandatory, Section Automatically displays asterisk.

 

Rohit99_0-1725268683146.png

 

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

Hi, I did exactly that and it didn't put the tab as mandatory