[Small (but free!) OTRS-Add on]List customer pending surveys

English! place to talk about development, programming and coding
Post Reply
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

[Small (but free!) OTRS-Add on]List customer pending surveys

Post by eandrex »

Some people have asked me how to display the pending surveys to their customer, so i decided to coded an small Otrs Package which i hope will be useful for OTRS Administrators out there.

Requeriments:
-OTRS 3.2 or 3.3
-Survey Module installed: 2.x

Usage:
Once this module has been installed, there will be a new file in <OTRS_HOME>/var/httpd/htdocs/js/ called "Survey.Customer.ShowPendingSurveys.js". You should add that file to the javascript loader in the module you want to display the customer peding surveys. For example, if you want to display the pending surveys in CustomerTicketMessage Screen:

Go to SysConfig
Group: Ticket
Subgroup: Frontend::Customer::ModuleRegistration

and add a new loader (type javascript). Something like this: http://i.imgur.com/z1nJ3Xm.png

FAQ:
Q: How do i display the Dialog in modal mode?
A: edit <OTRS_Home>/var/httpd/htdocs/js/Survey.Customer.ShowPendingSurveys.js Around line 25
change

Code: Select all

Modal: false,
to

Code: Select all

Modal: true,
Q: How do i know what is the JSON Response?
A: Navigate in your webbrowser to http://otrsdomain/otrs/customer.pl?Acti ... SurveyList and paste the result here: http://json.parser.online.fr/

Q: I want to change the size of the popup when i click a pending survey. how do i do that?
A: edit <OTRS_Home>/var/httpd/htdocs/js/Survey.Customer.ShowPendingSurveys.js. From line 35 to 38..edit as you want!

Screenshots:

System: OTRS 3.2
Module: CustomerTicketOverview
Modal: true
Image
Modal: false
Image

System: OTRS3.3 Ignore the "custom" theme
Module: CustomerTicketMessage
Modal: true
Image
Modal: false
Image
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: [Small (but free!) OTRS-Add on]List customer pending sur

Post by reneeb »

It would be great if you make a .opm of it and publish it on OPAR http://opar.perl-services.de
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
eandrex
Znuny expert
Posts: 213
Joined: 04 Nov 2012, 23:58
Znuny Version: OTRS 4.x
Real Name: Esteban
Company: NORTON DE COLOMBIA

Re: [Small (but free!) OTRS-Add on]List customer pending sur

Post by eandrex »

reneeb wrote:It would be great if you make a .opm of it and publish it on OPAR http://opar.perl-services.de
I just did so. :D
Post Reply