Vidéos d'aide de Screencast
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

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

Created: 30 Janv. 2013 • Updated: 31 Janv. 2013 | 9 comments
Ce problème a été résolu. Voir la 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!

Commentaires CommentairesAccéder au dernier commentaire

l'image des reecardo

Try doing a

window.location = "Hai_IAmAPage.htm";

in JavaScript.

l'image des oshgosh

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

l'image des reecardo

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

l'image des oshgosh

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.

l'image des oshgosh

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

l'image des reecardo

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.

l'image des

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.