How to show only Survey in a New window without Navigation Window ( in the Left ) and browser address

akularaj
Tera Contributor

Hi,

I have ... link sent to user in a email, which links to Survey.

I want to only show the Survey window and hide Navigation Bar on the Left and
address bar on the top. Is there any way to do so.

I tried using the document.get...ID / Name / ... in the Survey Header but it would not work as it
cannot find the Navigator.

How does the Left and Right Arrow work ? can i use this feature for my requirement.

9 REPLIES 9

geoffcox
Giga Guru

If the link you are sending includes the "/nav_to.d?uri=" in it, that's what causes the left navigation bar to show up.

Remove that and you should see the survey in it's own window.

I'm not sure I approve of hiding the address bar on top.

Cheers,
Geoff.


mwascak
Kilo Contributor

It also helps to have the survey in a CMS page that you can add the functionality to have the survey resolve as a stand along pop-up style webpage.

http://wiki.service-now.com/index.php?title=Modifying_the_Banner


akularaj
Tera Contributor

Hi Geoff,
As it is a Survey I am not able to remove the "/nav_to.do?uri=" , on removing it goes straight to login page.
i used
https://instance.service-now.com/nav_to.do?uri=survey_take.do?sysparm_survey=Closed%20Survey%26SM_USER=${caller_id.user_name}%26DE_USER=${caller_id.u_de_id}%26NCE=${caller_id.user_name}${number}%26sysparm_survey_update=false%26sysparm_number=${number}%26sysparm_caller_id=${caller_id.first_name} ${caller_id.last_name}%26sysparm_sysid=${sys_id}

Original below works fine but with the Navigation Explorer in the left
https://instance.service-now.com/nav_to.do?uri=survey_take.do?sysparm_survey=Closed%20Survey%26SM_USER=${caller_id.user_name}%26DE_USER=${caller_id.u_de_id}%26NCE=${caller_id.user_name}${number}%26sysparm_survey_update=false%26sysparm_number=${number}%26sysparm_caller_id=${caller_id.first_name} ${caller_id.last_name}%26sysparm_sysid=${sys_id}



Hi Matt , we are not yet using CMS.


john_andersen
Tera Guru

Since your Survey requires authentication, the default deep linking method does put the destination page in a frame.

There are a number of ways to handle this, but the easiest two methods would be:

Option 1
Create UI Macro or UI Page question type on the survey. The macro or ui page could have some meaningful instructions, but also contain frame-busting javascript code like the following:

find_real_file.png

You may have to modify your survey form to show the UI Macro and UI Page fields on the form. This is how my question form looked:

find_real_file.png

When your survey is loaded, it will show your text and break out of the parent frame. If using a UI Macro, there will be border text around your macro (hence, it would be good to put instructions in there). If you use a UI Page, there will be no border (so, you wouldn't necessarily need to put visible text in it):

find_real_file.png

Option 2

Modify your introduction HTML to have framebusting javascript. However to do this, you will need to enable scripting in your introduction text. There are instructions on this at:
http://wiki.service-now.com/index.php?title=Creating_a_Survey#Enabling_Scripts_in_the_Introduction

I have never tried this, so I can't say that I have verified this method.