Closed adam-clarey closed 6 years ago
This extends the form submission process so that after successful submission, you can trigger JS functions with arguments.
In your form submission, this would be triggered as such:
data.execute = true; data.functionName = 'window.location.reload'; data.arguments = ['arg1', 'arg2']; thisHook.pass(data);
This would be the equivalent of running the below on the clientside:
window.location.reload('arg1', 'arg2');
This extends the form submission process so that after successful submission, you can trigger JS functions with arguments.
In your form submission, this would be triggered as such:
This would be the equivalent of running the below on the clientside: