- Posts: 45
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Display gauge chart at the end of assessment
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
3 years 8 months ago #202093
by karencheah
Display gauge chart at the end of assessment was created by karencheah
I would like to be able to run an assessment and display the total score at the end graphically, specifically as a gauge chart. I was looking into using Chart JS but I can't figure out how to add script into the End message or a text display question without breaking the whole survey.
Please advise what the options are (free/paid). Thanks in advance!
Please advise what the options are (free/paid). Thanks in advance!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
3 years 8 months ago #202107
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Display gauge chart at the end of assessment
Here are some old instructions o how to use JavaScript -
manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 2
3 years 8 months ago #202121
by karencheah
Replied by karencheah on topic Display gauge chart at the end of assessment
Thanks, Tony. I'll take a look and give it a go.
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 2
3 years 8 months ago #202122
by karencheah
Replied by karencheah on topic Display gauge chart at the end of assessment
Unfortunately, the plugin is not compatible with LS version. I'm on Version 4.3.0+200616. Anymore ideas please?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 8 months ago #202130
by DenisChenu
(and yes : currently no way to have question attribute via plugins)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Display gauge chart at the end of assessment
Plugin is not needed, it's an alternative.karencheah wrote: Unfortunately, the plugin is not compatible with LS version. I'm on Version 4.3.0+200616. Anymore ideas please?
(and yes : currently no way to have question attribute via plugins)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 2
3 years 8 months ago #202144
by karencheah
Replied by karencheah on topic Display gauge chart at the end of assessment
Thanks, Denis. I turned off the "Filter HTML for XSS" in the global settings but I still couldn't add any javascript. So I thought that the plugin was needed.
I'm thinking of another idea that would maybe be easier than trying to do the chart within LS. What if I pass the score out as a parameter to another page where I will render the chart? The question is how to pass the score out...
I'm thinking of another idea that would maybe be easier than trying to do the chart within LS. What if I pass the score out as a parameter to another page where I will render the chart? The question is how to pass the score out...
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 8 months ago #202152
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Display gauge chart at the end of assessment
In 4.X you have a "script" block, maybe you can use it.karencheah wrote: Thanks, Denis. I turned off the "Filter HTML for XSS" in the global settings but I still couldn't add any javascript.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 2
3 years 8 months ago #202167
by karencheah
Replied by karencheah on topic Display gauge chart at the end of assessment
Sorry, I can't seem to find this "script" block in the question or the settings. Also can't find any documentation on it.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 8 months ago - 3 years 8 months ago #202170
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Display gauge chart at the end of assessment
Else : you are in assesement,
Seems there are not HTML editor in 4.X
Just add
<script type="text/javascript" charset="utf-8">
alert("Test!");
</script>
And see what happen
Seems there are not HTML editor in 4.X
Just add
<script type="text/javascript" charset="utf-8">
alert("Test!");
</script>
And see what happen
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Attachments:
Last edit: 3 years 8 months ago by DenisChenu.
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 2
3 years 8 months ago #202172
by karencheah
Replied by karencheah on topic Display gauge chart at the end of assessment
I've tried it in the question text and the end message in source code. Both didn't like it.
The topic has been locked.
- karencheah
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
- Thank you received: 2
3 years 8 months ago #202173
by karencheah
Replied by karencheah on topic Display gauge chart at the end of assessment
I've also turned off assessment mode.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
3 years 8 months ago #202174
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Display gauge chart at the end of assessment
Are there any JavaScript errors in the console (F12)?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.