- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 10:31 PM
Hello,
We need to create an update button on the Incident form that overrides the out-of-the-box (OOB) update button. When we submit the update button, it should update the form. Before updating the form, a pop-up message should be displayed. Once the user clicks on the pop-up message, the form should redirect to the list view. How can we achieve this? and this button should be displayed specific form view.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 11:09 PM
function click() {
var answer = confirm("Please confirm you want to update the record");
if (answer == true) {
var URL = '/incident_list.do';
window.open(URL);
gsftSubmit(null, g_form.getFormElement(), '<ui action name>'); //replace new ui action name
} else {
return false;
}
}
if (typeof window == 'undefined')
updateRecord();
function updateRecord() {
current.update();
}
Check the client checkbox and onclick field on UI action . To display the button in specific view update the ui action visibilty related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 11:09 PM
function click() {
var answer = confirm("Please confirm you want to update the record");
if (answer == true) {
var URL = '/incident_list.do';
window.open(URL);
gsftSubmit(null, g_form.getFormElement(), '<ui action name>'); //replace new ui action name
} else {
return false;
}
}
if (typeof window == 'undefined')
updateRecord();
function updateRecord() {
current.update();
}
Check the client checkbox and onclick field on UI action . To display the button in specific view update the ui action visibilty related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 11:17 PM
Hi @Khalid9030,
1. Need to insert and stay for Update button (on table 'Global')
2. Do the Configuration as mentioned in following screenshot.
3. For View, you have related list below UI action.
Please mark my response as correct and helpful if it helped solved your question.
Thanks,
Rohit Suryawanshi