How to call custom UI Action that overrides global in gsftSubmit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2019 05:36 AM
Hello,
I have an 'Update' UI action on specific table that overrides the global UI action. I made my custom button to do some client side validation so if nothing changed on the form not to update the record else to do some server-side code. Here is the code
however the gsftSubmit always call the global UI action. It seems to be always on the form at the backend. I tried to add condition to global button to exclude tablename (current.sys_class_name != ' myTable' ) but it does not work it is still taken in the submit.
function checkModified() {
if(!g_form.modified){
alert('You have not made any changes to the form!');
return false;
}
gsftSubmit(null, g_form.getFormElement(), 'sysverb_update');
}
if (typeof window == 'undefined') {
// My server-side code
}
Is there a way to explicitly call the button by its gsft_id, but not the id which is the same as the global one ?
Any help please ?
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2019 12:31 AM
Yes, correct. I have all these done correctly as I am doing client side validation, otherwise I wouldn't need gsftSubmit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2021 06:00 PM
Thanks,
Archana N
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 04:04 PM
I know this is an old thread. @Vladimir Cheres , Have you found a solution? I have the same issue.