related list section shold be mandatory when state is resolved

MahalakshmiN543
Giga Contributor

My req is whenever state changes to resolved related list section fields called notes should be mandatory.

5 REPLIES 5

GlideFather
Tera Patron

ahoy @MahalakshmiN543,

 

could you provide a screenshot? Do you mean related list (bottom of a form) or section (somewhere in the middle).

 

You can make a field(s) mandatory, no need to adjust section (not sure if it is even possible) because the mandatory attribute is set on field level and can be adjusted from ACL, Data Policy or UI Policy (action)...

 

Provide more context for better siggestion

---
Where the rules are real, you'll find me

Ankur Bawiskar
Tera Patron

@MahalakshmiN543 

I agree with what @GlideFather mentioned

share some more details so that we can help better

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

MahalakshmiN543
Giga Contributor

Hi,
Thanks for responding,i am attaching the screenshot for your reference.

MahalakshmiN543_0-1780929090577.png

 

ahoy @MahalakshmiN543,

 

you can create Data policy with conditions - when Incident is in resolved state the two fields are mandatory.

 

Something like this:

GlideFather_0-1780946240275.png

 

And then when you Resolve your incident it will not be possible without populating the fields that you select.

 

It will be enforced for the new records and for the already resolved incidents, it will become mandatory additionally, it means that if you won't touch it, it will stay with empty mandatory field.

 

Altenratives:

you can also set the mandatory attribute from a client script but it wouldn't restrict the change in a list view so it is not the best method. 

 

Another option is the ACL, it requires security admin (elevated) role.

---
Where the rules are real, you'll find me