Video Screencast Help

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

Created: 30 Jan 2013 • Updated: 31 Jan 2013 | 9 comments
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.

oshgosh's picture

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

reecardo's picture

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

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.

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?

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');;

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

SOLUTION'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.