Make a Whole Form Tab Mandatory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 06:51 AM
We have a weird situation going on. We have a Field on our Incident table showing up as Mandatory when it appears it should not be when using a Template. It is on our Incident form, And the weird thing is, the Mandatory asterisk is showing up at the tab level, not on the field level, as shown below:
I have never seen that before. Is it possible to make a whole Tab Mandatory? I have not been able to find any information on that.
I searched UI Policies and Client Scripts on the Incident table. There are no UI Policies affecting the Mandatory setting on the Work Notes field. I found 2 Client Scripts referencing the Mandatory setting of the Work Notes field. I disabled one, and it made no difference. When I disabled the other one, it worked, but it made no sense to me.
Here is what it looks like:
Here is the really weird thing. If I add alerts to my code, I confirmed that the "else" part of the IF is being invoked, which should be setting the Mandatory setting of Work Notes to False. And in the template we are using, the State is set to "New", which has a value of "1" ("Hold" has a value of "99"). So it seems the correct section of the script is running, however the whole tab is being marked as Mandatory. However, if I disable this particular Client Script, nothing is marked mandatory and it works.
And that is the other weird thing. This issue only occurs when a Template is being used. If we manually fill out the form using all the same values that the template is using, that field is not marked mandatory, and everything works as we expect. So it appears that there is something about using a Template that is causing this to work improperly.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 06:12 AM
Can you share the template as well? It feels like there's something in there that is causing the trigger of the worknotes.
Next to that: Your tab, does that only contain that 'work notes' field? Not a combination of work notes and comments you can toggle? I can't see that in your screenshot.
What happens when you move a ticket to a state that requires mandatory fields to be filled, the asterisk on the tab shows you that there are mandatory fields on there. It feels like there is something in your template being set that requires something to be added but not visible on the tab. That doesn't explain it working when you inactivate the client script, but maybe that causes something else to react.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 06:21 AM
I am sorry, I should have closed this ticket out. We got it figured out a few weeks ago. I believe it has something do to the the different custom Views, if I recall correctly.