Support Forums

Questions about surveying? How does this thing work? We're here to help!

The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.

Current User: Guest

How to redirect to external URL when clicking on close survey button.

Topic Locked
UserPost

12:31
June 12, 2009


Mike

Member

posts 11

When the survey goes to the thank you page, I want the user to be sent to an external URL when they click on the “Close Survey” button. I can't seem to get this to work the way I want.


1:37
June 12, 2009


jonathan

Admin

posts 1129

Hey, Mike!

The Close Survey button was designed to close the Survey window using Javascript (if the window was opened by Javascript initially).

If you'd like to add in a button that redirects when it gets clicked, you can do this by adding in a descriptive text to your “Thank You” page, and modifying the text's source to add in an HTML button with a Javascript redirect.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

4:20
June 12, 2009


Mike

Member

posts 11

Do you have any examples of how to implement this?


Thanks Jonathan

7:46
June 12, 2009


jonathan

Admin

posts 1129

Post edited 2:46 – June 12, 2009 by jonathan


You could just add a simple javascript button like this:

<input onclick=”location.href='http://www.google.com/'” type=”button” value=”Click Me!” />

This would need to be placed inside of your descriptive text's SOURCE.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

4:18
June 13, 2009


Mike

Member

posts 11

Jonathan,


I incerted the line of code as you indicated but it's not working.


Please advise.


Thanks

3:13
June 18, 2009


jonathan

Admin

posts 1129

Hey, Mike!

I looked at your survey and didn't see that HTML code anywhere, so I went into your Thank You message's Source and added it myself. It looks like its working fine. Go ahead into yoru survey and click on it to make sure it works for you.

I hope this helps!

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

10:04
June 25, 2009


Mike

Member

posts 11

This is still not working. We need to make this usable for our customers. I don't feel like I'm looking for any special functionality. All I want is for the user to be able to complete the survey, either close the survey and be sent back to our Web site or complete the survey, submit and be sent back to our Web site upon completion. It seems like this should be a basic function and yet it doesn't seem to work this way.


Please advise.


Thanks

10:19
June 25, 2009


jonathan

Admin

posts 1129

Mike, the button we've added is working, we've double checked to make sure by testing it on a Windows and Mac, in Firefox, Safari and IE7. If you click on it, it sends you to Google.com. You'll want to modify the SOURCE of your Thank You message to change the website that it redirects to (which right now says http://www.google.com/).

The problem herein is that you want to use Javascript – to close the window or redirect someone. This causes an issue with Browser Permissions. Most browsers have security settings that limit the functionality of some Javascript functions (like the window.close() method), blocking it from working. This is not something that SurveyGizmo can control.

The most effective way to redirect someone out of your survey would be to use the SurveyGizmo Browser Redirect action, it is the most compatible solution for what you're looking to accomplish, but this would be automatic, not a clickable button.

You can try Google Searching “javascript window.close” to find numerous articles on the implementation and limitations of the functionality, and why it does not work in a majority of settings.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

11:17
June 25, 2009


Mike

Member

posts 11

Hi Jonathan,


I do appreciate your help. It's not that I want to use JavaScript, I just want the function of a URL redirect  when the user is done with the survey. The software seems to only offer the URL redirect when it's triggered by a previous answer.


When a user answers question #6, I want a page that says “Thank you for taking our survey. Your response is very important to us.” with a “Close Survey” button that will send the user to our site. Is there a better, simpler way to arrive at this simple function?


Thanks again,


Mike

11:24
June 25, 2009


Mike

Member

posts 11

We don't seem to be on the same page. I'm wondering if we're talking about the same survey. The title of the survey I need help with is Self-Insurance Web Site Survey.

12:15
June 26, 2009


jonathan

Admin

posts 1129

Hey, Mike!

You're right, I was looking up your account by the email address you were using to post on our forums, which brings up a completely different account with another survey inside of it. It seems you're logged in as Connie on a different account, because thats the only account in our system where a survey titled “Self-Insurance Web Site Survey” exists.

Anyway, now they we're on the same page (phew!) I found where you entered in the code! Everything looks great, except that you had input type=”text” rather than input type=”button”. I've fixed this in your survey and now its working as it should :-)

As for our redirects, we can have our Redirect browser action automatically redirect somewhere from any individual page o the survey, OR you can place conditions on it by using the “Redirect Suppression Rule“. If you leave the rule blank, then the redirect will always happen anytime someone reaches the page where that redirect action occurs.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

12:53
June 26, 2009


Mike

Member

posts 11

I'm glad we finally got past that. One last issue…Now there are two buttons for closing the survey which is going to be confusing to the user. Can I remove the default button?

1:40
June 26, 2009


jonathan

Admin

posts 1129

Sure! Go ahead back into your “Look & Feel” section, just under the “Edit Survey” tab. In the Look & Feel page, you can now “Uncheck” the option to put a Close Survey button on your Thank You page.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

3:00
June 26, 2009


Mike

Member

posts 11

Thanks much Jonathan!! I appreciate your help and patience.

8:46
July 15, 2009


Tait Researcher

Guest

Hi Jonathan,


I would like to have same condition on our survey – the automatic redirection to an oustide website, when the respondent closes the survey.


Could you please tell me how to use the “Redirect Suppression Rule“. ?


Thank you,

Vibha.



The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.