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

Abhinay Erra
Giga Sage

Yes, use confirm() in your onSubmit client script and redirect them using window.location()


Hi Abhinay, thanks!   I get an error when using window.location:



find_real_file.png


Abhinay Erra
Giga Sage

I stand corrected, this will not work on submit


Abhinay Erra
Giga Sage

Syntax should be window.location='URL goes here';   However it will not work onsubmit client script.