How to hide Left navigation bar on user redirect

savitha5
Tera Contributor

Hi,

I have a UI page redirecting user to a particular form in the instance. When user clicks on the URL from email notification he will have to be redirected to the form and left navigation bar should be hidden. Can anybody suggest me a solution for this.

The URL used in UI Page to redirect user is : com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=9aa0cd8b4f653200b55db4a18110c718

But when an end user clicks on the link the URL is shown as : /nav_to.do?uri=/com.glideapp.servicecatalog_cat_item_view.do%3Fv%3D1%26sysparm_id%3D9aa0cd8b4f653200b55db4a18110c718

Please find the screenshot of the form below. User clicks on the URL from an email and he will be asked to login, and once logged in only the form should be shown. I want to remove the navigation bars.

Thrid party view.PNG

Is there anybody who can help me out of this ?

Regards,

Savitha

7 REPLIES 7

ashwinkumar_pat
Giga Expert

Hi Savitha,



Have you explored modal dialogs?



On a different note, it looks like you want to send surveys. You don't really need to build a UI page if you use OOTB survey module in ServiceNow.


Pl see if you can use that instead of building your own. I have used it and it does its job well.



~@$#


Hi Ashwin,



It is a kind of Survey where the URL will be shared from external email notification and user should log into SNOW for taking this survey.
I dont want to use OOB survey module for some reason. All my tasks are done and the only issue left out is redirecting user to the Survey link.
There are few UI pages following the Survey submission and I am tracking the submitted survey record by parsing the sys_id of the record to the URL of UI pages.
I mean connection to the UI pages and the Survey record is made by concatenating sys_id to the UI pages URL and I will set the Survey status when user has gone through all the UI pages.



What is modal dialogs? Is it something like GlideDialogWindow.. My UI page should not be in a Dialog window, it should redirect user to the page completely without left navigator as this user is only allowed to take survey and click Agree button on the UI page.


Ok. Your requirement sounds close to public survey which is achievable using Survey module. May I know the reasons you dont want to use survey module. I just want let you know that most of the use cases are taken into account when you have a module dedicated for a purpose (in this case, surveys). I would not deviate from OOTB feature and reinvent the wheel unless there is a strong enough reason to do that.


Just curious, what are your reasons for not using survey module.



~@$#


Hi Ashwin,



Sorry for the late reply.



Even in Survey I find the same issue. The Survey url also contains nav.do and the page is displayed along with left navigation bar. I want the user login to the instance to take up the Survey therefore, I cannot enable Public.


https://instance_name.service-now.com/nav_to.do?uri=assessment_take2.do%3Fsysparm_assessable_type=f8...



Screenshot of the Survey after enabling Public Access... But I want to know the User who has taken the Survey.Enabling Public Access will allow anyone to take survey without Login



Public Survey.PNG




Screenshot of Survey without Public Access.



Disabled Public Access.PNG