gsftSubmit(null,form element,ui action name);

rameshrv999
Giga Contributor

Hi Friends,

can any one tell me why do we need pass first parameter of the gsftSubmit() as "null"

gsftSubmit("null",form element,ui action name);

Thanks for helping

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Closer inspection revealed a comment>



//Pass a control (button) or a form and action name if the control does not exist.


function gsftSubmit(control, /* optional */ form, /* optional */ action_name) {


View solution in original post

3 REPLIES 3

Chuck Tomasi
Tera Patron

I found this function definition in the depths of the of our code.




function gsftSubmit(control, /* optional */ form, /* optional */ action_name)



Based on the variable name, it's a control object (perhaps that passed back from g_form.getControl()?


Chuck Tomasi
Tera Patron

Closer inspection revealed a comment>



//Pass a control (button) or a form and action name if the control does not exist.


function gsftSubmit(control, /* optional */ form, /* optional */ action_name) {


Hi Tomasi,



I have an another doubt regarding gs.eventQueue("change.abandon", current, current.requested_by);



If we add user in whom to send field in notifications and again if we pass the same user as parameter in gs.eventQueue() as shown in above syntax, then the notification trigger twice?