How to Make Additional comments readonly in Portal and ITIL view on RITM form.

Meenal Gharat
Giga Guru

Hi All,

How to make additional comments on RITM read only(greyed out) if the approval is 'Not yet Requested'?

I tried using UI Policy But it hides the additional comment field when the condition is true, but this doesn't works on Service Portal.

Also checked ACL's still no luck.

Can someone please advise me on the same.

Thanks and Regards,

Meenal

9 REPLIES 9

Can we Hide Additional comments on Portal using the same condition?

 

Hi Meenal,

why not use ACL instead?

also what is the view selected on the UI policy? do you mean it is working on native UI but not in portal side?

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Yes It is not working on Portal Side

I also check UI Type to ALL

Thanks and Regards,

Meenal

Hi Meenal,

Scripted UI policies no longer work on Service Portal or mobile if ‘Isolate Script’ is true or for scoped apps

so either have below approaches

1) set isolate script to false to make the script run

OR

2) you can use UI policy action for that comments field instead of script

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Try using:

g_form.setReadonly('comments', true);