create a button called Save closed

yardenKrispel
Tera Contributor

Hello! I'm trying to create a button called Save closed that will appear at the top of the incident form and as soon as it is clicked it saves and closes to the list of incidents I did through a UI action but it doesn't work I mean I see the button but when I change details in the incident and click the button nothing happens I need help with the script I wrote

 

 

yardenKrispel_0-1702567384256.png

 

5 REPLIES 5

Aniket Chavan
Tera Sage
Tera Sage

Hello @yardenKrispel 

I just simply tried with the below code and it worked expected as it saved the currect record and redirected to incident list view.

AniketChavan_0-1702801601203.png

 

current.update();
var url = current.getTableName() + '_list.do';
action.setRedirectURL(url);

 

Let me know your views on this and Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket