gsftsubmit not calling the UI action from UI macro

kumvipin
Mega Contributor

Have written a simple code section in the UI Macro to call the gsftsubmit, not sure why its not calling the UI action.

in a further debug in chrome it seems to be calling the gsftSubmit function of SN and going till f.submit() but doesn't gets into UI Action.

For a simple debug just wrote gs.log in ui action.

<script>
function moveTo(str)
{
alert('moveTo 1');
//var form = document.getElementById("change_request.do");
var form = gel("change_request.do");
gsftSubmit(null, form, 'ss_move_to');
//gsftSubmit(null, form, 'sysverb_update');
alert('moveTo 2');

}

</script>
1 ACCEPTED SOLUTION

kumvipin
Mega Contributor

Thanks all for your kind replies and time got the issue it was nothing wrong in the way the code was written.


Sometime we devs are bit impatient the old code was cached not sure for some reason. cache.do helped


View solution in original post

9 REPLIES 9

Andrii
Kilo Guru

Make sure Action name is exactly same as you put into your gsftSubmit function.



and I think it should look more like this: gsftSubmit(null, g_form.getFormElement(), 'sysverb_update');


kumvipin
Mega Contributor

Nope i am using the right name. But just wondering that gsftsubmit is all good in Fuji as it was before.


This is working ?



g_form.setValue('description', 'This is from the Client Script.');


yes this works