Don't allow other UI Action buttons to be clicked until Assign To me button is clicked

Annette Kitzmil
Tera Guru

Hi Everyone,

I have tried various ways with no success to get other UI Actions in workspace, e.g., Approve, Escalate, Decline to not be available unless the Assign To button gets clicked 1st if the user is part of the assignment group and is not the current assigned to user.  So, I am hoping someone here has had the same requirement that may be able to provide some in sight as to how you may have met this requirement please.

 

The other thing that I seem to be having an issue with is getting the Assign To clear when the assignment group changes.  I have tried onChange client script as well as Business rule and neither seem to recognize that the assignment group has changed.  The assignment group changes once the user clicks one of the other ui actions, e.g., Approve, Escalate, or Decline.  So the field should clear right away.  Any thoughts on why either of these methods may not be working would be greatly appreciated.

 

Thanks,

Annette

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Annette Kitzmil 

why not show those buttons only when Assigned to is populated

current.assigned_to != ''

You can clear the Assigned to via the UI action click, by adding code inside that UI action script

what didn't work for you? share screenshots.

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