I have a custom Submit button on a custom NewItem form. I have a JQuery function which I would like to run when this button is clicked.
I also need the GenFireServerEvent(('__commit;__redirect={/}'))
action to run after my function if certain things happen in the function.
Ideally I'd like to just use the GenFireServerEvent(('__commit;__redirect={/}'))
action in my function so I can specify when to perform the action, however when I try this I get the "GenFireServerEvent is not defined" error.
Is there an alternative for GenFireServerEvent(('__commit;__redirect={/}'))
to use in JQuery functions?