Documentation Index
Fetch the complete documentation index at: https://docs.spike.ac/llms.txt
Use this file to discover all available pages before exploring further.
Default Behavior
By default, after a successful submission, users see a simple “Thank you” page from Spike.Custom Redirect
In Form Settings
Set a default redirect URL in your form settings. All submissions will redirect there.Using _next Field
Override the default with a hidden field:
Dynamic Redirects
Use different redirects based on form context:Conditional Redirects
Use Form Rules to redirect based on submission data:- Go to form settings → Rules
- Create a new rule
- Set conditions (e.g., “department equals sales”)
- Add action: “Redirect to URL”
- Enter the redirect URL
| Condition | Redirect |
|---|---|
| department = sales | /thanks/sales |
| department = support | /thanks/support |
| Default | /thanks |
AJAX Submissions
For AJAX submissions, handle the redirect in JavaScript:Pass Submission Data
Include submission data in the redirect URL:Same-Origin Redirects
For security, redirects must be to:- The same domain as the form’s allowed domains
- Or any HTTPS URL if no domain restrictions are set
Troubleshooting
Redirect not working?
- Check the URL is valid and accessible
- Ensure it’s HTTPS (HTTP redirects may be blocked)
- Check domain restrictions in form settings
- For AJAX, make sure you’re not setting
Accept: application/jsonif you want automatic redirect