Expand my Community achievements bar.

SOLVED

How do I redirect to a URL with JavaScript on submit in Adobe LiveCycle

Avatar

Level 4

How do I redirect to a specific URL with JavaScript upon submit in Adobe LiveCycle?

I already have the code in place where the submit event is handled, and just need the specific code to do the redirect.

Standard asp.net-style redirects such as

windows.location.replace(http://myURL.com);

do not work.

Any help would be appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

To be able to redirect a website with a submit button, you must have a custom submit button and insert the following line:

app.launchURL("www.url.com");

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

To be able to redirect a website with a submit button, you must have a custom submit button and insert the following line:

app.launchURL("www.url.com");