Video Screencast Help
Search Video Help Close Back
to help

Move to another page with the onclick or doubleclick javascript custom events?

Created: 30 Jan 2013 | Updated: 31 Jan 2013 | 9 comments
oshgosh's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

It seems like this is possible. I'm just not sure how to target a page or component in the javascript. Does anyone know how to do this? Or if there's a better way? Please help!

Comments 9 CommentsJump to latest comment

reecardo's picture

Try doing a

window.location = "Hai_IAmAPage.htm";

in JavaScript.

0
Login to vote
  • Actions
oshgosh's picture

Where do I get the page name from? It doesn't seem to be working.

0
Login to vote
  • Actions
oshgosh's picture

I need the workflow to move to another form builder or integration onclick. How do I reference them?

0
Login to vote
  • Actions
reecardo's picture

What do you mean by a new form builder/integration? Are you referring to another deployed project?

0
Login to vote
  • Actions
oshgosh's picture

 

Sorry for the confusion

When I said Form builder, I meant another page within the same project.

When I said integration, I meant something like a custom SQL component I created for that same project.

0
Login to vote
  • Actions
oshgosh's picture

 

If I can target something in the workflow via javascript, then I can make this work. Does anyone know how to do so?

0
Login to vote
  • Actions
reecardo's picture

Here's something you can try, unsure if it'll work.

1. Add a button to the form with visibility set to false. Hook up the path of the button back to the form you want to navigate to

2. Add a custom javascript event for "onclick" that finds that hidden control and forces a click. Assuming the Control ID of the hiddent button is "woohoo" (no double quotes), the JS would be:

var button = document.getElementById('woohoo');

button.click();

There's probably better ways to do this in Workflow, but this is a JS route if there was one.

SOLUTION
+3
Login to vote
  • Actions
michael.george's picture

Though I haven't tried this or needed it yet, I think that's a pretty slick solution. Thanks.

If a post solves your issue, please mark it as a solution. It makes these forums better for everyone.

0
Login to vote
  • Actions
oshgosh's picture

IT WORKED! Thank you so much reecardo.

You're the man.

0
Login to vote
  • Actions