How do I add an incident number and short description to the Survey?

jackiem
Kilo Contributor

Hello,

I am trying to add the incident number and short description to the survey.   I can add the incident number to the email but I would like it to appear directly within the survey take page.    

I found one suggestion to pass the parameter of the incident number through the URL and default the value of a question on the survey to javascript:RP.getParameterValue("incidentnum") but I do not see a field for the default value of a question. I could find the field in the legacy survey but not under the new surveys in Fuji.  

How do I add the incident number and description into either the survey intro or somewhere on the survey take page?

thank you,

Jackie

1 ACCEPTED SOLUTION

My apologies Jackie - I just assumed that survey was a system delivered UI page since it sounded like it was. I looked at ours a little closer - survey was a page we created based off of assessment_take2 (so that we would not lose the future updates). The code above was put inside this tag: <div class="assessment">, you can play with it to get it in the right spot on the page.


View solution in original post

30 REPLIES 30

Hello Trevork ,

We have received the same requirement to show the respective INC Number and Short Description in the survey.

In the table tag, I have replaced the existing OOTB code with the code which is suggested by you.

find_real_file.png

As pointed in the above snapshot, I am successful in retrieving the incident number and its short description.

My only concern is, I do not want the one which is highlighted i.e., "This survey is in regards to" and this is repeated twice.

I have just pasted the code given by you and this is the result. With the incident information, "This survey is in regards to" is also pop up.

Please suggest the way to remove this sentence.

 

Thankyou.

Amulya Bachu

I will be honest, I cannot find the phrase "This survey is in regards to" anywhere on our instance so I don't think I can help you with that. Sorry!

HI @Amulya Bachu1 

We have similar issue like the one you said above.... wondering if you know the location from where this message comes if we want to make changes to the message "This survey is in regards"

 

tirtha1
Tera Contributor

Hi Trevor,



I am having the same issue incorporating the Incident Number and Description to a survey.From the thread I am able to get reach the assessment_take2 ui page but I am not able to see the <div class="assessment"> on that ui page. Is it a part of any other UI page ?Could you please help me on this?


div class="assessment" is line 284 of the page assessment_take2 that is provided by ServiceNow. So if you have not modified your page, just scroll to that line.



find_real_file.png