Make Additional Comments on RITM as mandatory if associated sc_task is on Hold

pandeyved
Tera Contributor

Hi All,
I am trying to meet a requirement, 
Scenario: 

Whenever a SC Task is set to "On Hold", the following should happen:
    •    Show Add Comments on RITM, as mandatory
    •    Shows the "Add Comments" as long as the checkbox "on Hold" is checked where major condition is to show Add Comment mandatory when onHold on Sctask is checked for the first time.

 

I have tried to create a flag variable on RITM, and trying to update it when it is checked for the first time, and then on change of that I am writing client Script to make it mandatory.

But that flag variable is visible on the form, and i dont want to make it visible.

Please suggest some other way to achieve the requirement.
Thanks.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@pandeyved 

you can hide the flag variable using UI policy and set it with higher order so that it's displayed towards the end of the form, so that by the time user scrolls down the UI policy will hide it

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

thanks @Ankur Bawiskar 

Can you please tell, if I need to meet this requirement,

I need to make additional comment on RITM as invisible if onHold checkbox is checked on the associated sctask.

@pandeyved 

I already informed the workaround above.

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