onSubmit script redirect to another form

yundlu316
Kilo Guru

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!

9 REPLIES 9

yea i changed it and it doesn't work either.   any other suggestions?



thanks!


Abhinay Erra
Giga Sage

What is the custom form? Is it a UI page?


No, we created a custom table that extends task and then just used form layout to create the form.


Uncle Rob
Kilo Patron

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?


Abhinay Erra
Giga Sage

Spot on!