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

Hi Trevor,



I used your code to add the Ticket# and Description to our survey. It works, however, it creates 2 surveys in a page, one with the survey details across the top and one with the default settings. Do you know how to fix this?



Thank you!



Regards,


Jocelyn


find_real_file.png



find_real_file.png


It's probably just on the wrong line - try putting it after line 371 ( <g2:no_escape>$[NS:typeGR.introduction]</g2:no_escape> ) and see if that fixes it.



It should go inside the <div> that the above code is in.


Hi Trevor,



Thanks for responding.


The above didn't work. I have 2 introductions.



find_real_file.png



This is where I added the code:



find_real_file.png


Hi Jocelyn



Did you manage to find a solution ?



I am seeing the survey details twice as mentioned by you, plus I am not seeing the incident details as well.



I had put the peice of code mentioned by Trevor after this line ( <g2:no_escape>$[NS:typeGR.introduction]</g2:no_escape> )



TrevorK


Hi Abhithen,



Sorry for the late response. I ended up not doing this anymore. Did it work for you?



Regards,


Jocelyn