| User | Post |
|
|
|
Hi,
I have a group of ratings questions that I want to total up the scores for and divide by the number of questions (see Survey ID 58162).
I then want to be able to show the results for each group at the end of the survey on a chart as a percentage of the total possible amount.
As an example, we have Group 1, which has 4 sub-questions, each question is rated 0 - 10. The respondent rates two as 5 and two as 10. The average being 7.5/10
There are 4 groups in total….
Can I use a Hidden Value to total and divide the subquestion values? Then use the hidden value to display a score?
|
|
|
|
|
OK, it looks like I need to get into the scripting side of things.
Bit out of my capabilities at the moment I think….php isn’t something I’ve had a lot of experience with, and I’m not a programmer
What I need to do is quite simple though (in theory). I need to take the average score over answers in a group, then store that figure (presumably in a hidden value?) to call it later with a chart….
If anyone can help me with a bit of pseudo cpde for the calculations bit, I should be able to figure the rest out as I go…..
|
|
|
5:32 July 25, 2008
| Mario
Moderator
| | Boulder, CO | |
|
| posts 610 |
|
|
You are correct, this would be custom scripting to run the calculations and store and retrieve them in hidden values so they are part of the response and reporting and of course allows charting and such.
The only advisement I can give is passing along the custom scripting page. http://app.sgizmo.com/surveybuilder/help_script.html
We are working on improving the documentation and example code, however we’re focusing our developer efforts at the moment on version 2 of SurveyGizmo in development.
|
|
|
|
|
Thanks Mario,
I’ll have a go.
Hopefuly someone on here will be able to help me out when I get totally stuck.
Do you have any more basic code examples you could let me see?
|
|
|
4:24 July 28, 2008
| cheri
Moderator
| | | |
|
| posts 593 |
|
|
Hello, Experimentus.
The link that Mario posted is all the documentation we have for you right now. After we get version 2.0 out, documentation will follow at some point. But it probably won’t be very soon.
–Cheri
|
|