Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

i need to mandatory Additional Comments but it's i need to mandatory Additional Comments work

EdenOrZedaka
Tera Guru

i need to mandatory Additional Comments (journal input type) when state = close incomplete (value = '4')

i try to use  ui policy with ui action, i try to use client script, but it's doesn't work, the field doesn't become mandatory.

what can be the sulotion?

2 ACCEPTED SOLUTIONS

EdenOrZedaka
Tera Guru

I found the solution - inside ui action there are 2 reference folders that I needed and didn't know they were there:

1) Request

2) request item
And inside request item there is the "additional comments" field, that I was looking for, it mandatory the field.

View solution in original post

in UI Policy Action you have "Field Name" field and inside you have folders, two of them are Request and Requested item.

this is what i searching for.

Thanks to everyone who tried to help 🫶🏼

View solution in original post

7 REPLIES 7

GlideFather
Tera Patron

Hi @EdenOrZedaka,

 

if the Catalog task is Closed Incomplete then it's no longer possible to update the ticket. Why would oyu want to add additional comments to inactive records? It doesn't make any sense :((

_____
100 % GlideFather experience and 0 % generative AI

I'll explain it in a simpler way:
I want when the user changes the status to closed incompleted that it will mandatory the comments field to write a note to the customer (explaining why he closed it and didn't complete the task)

Ankur Bawiskar
Tera Patron

@EdenOrZedaka 

if the complete form is readonly once state = Closed incomplete, how would user enter comments?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Tanushree Maiti
Giga Sage

Hi @EdenOrZedaka ,

It is working code/configuration.. implement this way- 

1)Create UI policy on sc_task

TanushreeMaiti_0-1771510857166.png

 

2)Go to Script tab, 

If execute True, Write ur code as per your requirement.

Sample:

TanushreeMaiti_1-1771511029724.png

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: