FORMS
Adding a Callback Function to call after the Form has successfully submitted
1min
by default, siteglide forms will reload the page after submission if you would like to run some alternative javascript on the front end instead, you can do so by passing in a callback function to the 4th argument liquid here we set the 3rd argument to undefined to "skip" it, but you can use this to set a custom callback function to call when the form submission process encounters an error see custom javascript validation for forms docid\ syi1g29c55ooyo5aoeec9 your callback function will receive one parameter redirect which will contain the url which the form would normally redirect to you can choose to use this in your function if you need it we don't include the data submitted in these arguments, but you can of course use javascript to access the data directly from the dom if you wish to run code on the server side after a successful form submission, you have the option of adding automations docid\ jdtf83vbz0rfykua0nrin instead