onSubmit script redirect to another form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 10:43 AM
I have a custom form that gives the user a choice on whether they want to change their address or their name. Depending on what they choose, I am hoping to direct them to the Change Address or Change Name forms (both are custom tables/forms), where it will kick off the appropriate workflow.
Is it possible to use an onSubmit client script on the form where they can make their choice, which will direct them to the appropriate sub-form. Is this the right approach? If so, what is the correct syntax to redirect someone to another form? Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 10:45 AM
Yes, use confirm() in your onSubmit client script and redirect them using window.location()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 10:52 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 10:50 AM
I stand corrected, this will not work on submit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 10:57 AM
Syntax should be window.location='URL goes here'; However it will not work onsubmit client script.