How to create a custom cancel UI Action in case table

Gopal14
Tera Contributor

Hi Team,

 

How to create a custom cancel UI Action in case table for native view and workspace view

1 ACCEPTED SOLUTION

@Gopal14 

you need to write script in workspace client script.

if (g_form.getValue('comments') == '') {
g_form.setMandatory('comments', true);
g_form.addErrorMessage("You must add a reason in Additional comments in order to reopen an incident");
return false;
}

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

View solution in original post

19 REPLIES 19

@Gopal14 

share your PDI details and create admin account for me.

once the task is done, you can disable the admin account

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

@Ankur Bawiskar 

 

URl: https://dev265475.service-now.com/

Userid:  admin_2

pwd: yGD?2k:NUHR:]4Hs

 

admin access provided

@Gopal14 

The field state was not present in workspace view, I added and tested and it's working fine now

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

@Ankur Bawiskar ,

 

Do we have any way if we have not added state field on the form in workspace view.

@Gopal14 

then use GlideAjax and update the field from backend.

Also please disable that admin account which you shared yesterday.

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