How to call custom UI Action that overrides global in gsftSubmit

Vladimir Cheres
Tera Expert

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!

 

7 REPLIES 7

Yes, correct. I have all these done correctly as  I am doing client side validation, otherwise I wouldn't need gsftSubmit.

@Vladimir Chereshev  Can you check if the function names of custom and the global UI action matches. try changing the name and see if that works!

 

Thanks,

Archana N

annc_
Tera Expert

I know this is an old thread. @Vladimir Cheres , Have you found a solution? I have the same issue.