create a button called Save closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 07:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 12:27 AM
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.
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