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 11:03 AM
yea i changed it and it doesn't work either. any other suggestions?
thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 11:07 AM
What is the custom form? Is it a UI page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 11:13 AM
No, we created a custom table that extends task and then just used form layout to create the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 11:15 AM
I'm telling you man, this is a *REALLY* abstract means of pulling off what you want to do.
For one thing, Wizards do much the same thing, and are more accepted ways of handling form transitions.
For another, your onSubmit function isn't even factoring for data you've populated on that original form.... so why start there?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2016 11:22 AM
Spot on!