Integrate survey questions into the email body?

Moderator: crythias

Locked
kakadudu321
Znuny newbie
Posts: 2
Joined: 23 Jul 2024, 03:10
Znuny Version: 7.0.8
Real Name: RyanWU

Integrate survey questions into the email body?

Post by kakadudu321 »

Hi
I am evaluating Znuny 7 and survey model, now the Customer can get survey link after ticket closed, click the link then do the survey.
I want to ask if possbile integrate survey questions into the email body,
This saves the customer the process of clicking a link and then filling out a survey, and the survey results are directly fed back in the email

Just like the picture I provided
You do not have the required permissions to view the files attached to this post.
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Integrate survey questions into the email body?

Post by zzz »

Hey,

Technically, it's possible, but a bit tricky. You'd have to build the URL for each icon.

To build the URL, open the survey page the customer receives and fill out the form. Then, open the dev console of your browser (F12) and execute

Code: Select all

$('form').serialize();
This returns the final URL. You can repeat this for each rating – but you'll quickly find out that only the number in the URL changes. This can be done in combination with other fields as well.
Survey.png
With these URLs, you can then create your mail and add the links behind images of numbers, a table, some custome HTML etc.

Code: Select all

https://support.yoursystem.com/public.pl?Action=PublicSurvey;PublicSurveyKey=<OTRS_PublicSurveyKey>
would become
https://support.yoursystem.com/public.pl?Action=PublicSurvey;PublicSurveyKey=<OTRS_PublicSurveyKey>&PublicSurveyVote5%5B1%5D=5
When a customer opens the link, the form will be automatically submitted, and he only sees the “Thanks for your feedback” screen. You could also combine that to only auto-submit when the rating is above 5, and show a feedback field when the rating is below 5. But that's up to you.

Best
Emin
You do not have the required permissions to view the files attached to this post.
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
kakadudu321
Znuny newbie
Posts: 2
Joined: 23 Jul 2024, 03:10
Znuny Version: 7.0.8
Real Name: RyanWU

Re: Integrate survey questions into the email body?

Post by kakadudu321 »

Thank you very much Emin, I fully understand,have a nice day!

BR
Ryan
Locked