Make worknotes mandatory when button is clicked on SCTASK and accept that value in workflow

Karthick PS
Tera Contributor

I have created a button named "Incorrect Input" using UI action that appears on the SCTASK only for a particular catalog item.

I want to make the "Work Notes" mandatory when this button is pressed. 

There are already "Complete" and "Cancel" buttons on SCTASK. I need them to disappear once this "incorrect button" is clicked.

Please help at the earliest.

1 ACCEPTED SOLUTION

@Karthick PS 

Hope you are doing good.

Did my reply answer your question?

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

Regards
Ankur

 

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Karthick PS 

For showing/hiding buttons via script you require DOM manipulation which is not recommended.

I won't suggest that.

Ensure you use correct UI action conditions to show/hide them

Regards
Ankur

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

@Karthick PS 

Hope you are doing good.

Did my reply answer your question?

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

Regards
Ankur

 

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