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!
Discussion Filed Under:
Group Ownership:
Comments 9 Comments • Jump to latest comment
Try doing a
window.location = "Hai_IAmAPage.htm";
in JavaScript.
Where do I get the page name from? It doesn't seem to be working.
I need the workflow to move to another form builder or integration onclick. How do I reference them?
What do you mean by a new form builder/integration? Are you referring to another deployed project?
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.
If I can target something in the workflow via javascript, then I can make this work. Does anyone know how to do so?
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.
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.
IT WORKED! Thank you so much reecardo.
You're the man.
Would you like to reply?
Login or Register to post your comment.