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.

Mandatory Tab/Form Section

Ken83
Mega Guru

Hello Community,

        I'm having an issue on my Change Task form. I am displaying fields on the change task that reside on the parent change record. So, when a task is generated, these fields are visible and mandatory. The problem is that the tab does not show the * on the tab to indicate the mandatory fields. I am using a UI Policy to make the fields mandatory. Any suggestions? See below..

find_real_file.png

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

This page might have something you can use on it, specifically g_tabs2Sections.markMandatoryTabs();



Demystifying form tabs


View solution in original post

9 REPLIES 9

This page might have something you can use on it, specifically g_tabs2Sections.markMandatoryTabs();



Demystifying form tabs


Perfect. I was just toying around with that method earlier but I didn't have a defined list which is why I didn't know about markMandatoryTabs(). That does exactly what I need. Thank you sir!


It turns out that the g_tabs2Sections.markMandatoryTabs() is not running onLoad. I get the asterisk(*) once I modify a field, remove the value and click away from it. Then it recognizes that a field is mandatory on the tab, and the tab shows properly.



If I just load the page for the first time, there is still no indication that a tab has mandatory fields on it.


Are the fields on the Assessment tab also set mandatory by UI Policies? Perhaps the * on the tab only show when there are field mandatory by dictionary or dictionary override?


Yes, they are set by UI policy.