Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: punch)

  • Joffm
  • Joffm's Avatar
23 Jan 2024 16:29
Replied by Joffm on topic Scoring and Reporting
Hi,
sorry, but what can I answer, if you do not do what you are told?
I wrote

the easiest way to is to code the answer options according to the weight.
10: Yes
5: Not yet, but we are in the process of implementing it
0: No

and you code

B11: No
B12: Yes,  option 1
B13: Yes, option 2
B14:Yes,  option 3


How do you want to sum this?
And instead of "You reached {S1Q1} points", you have to write
You reached {if(S1Q1=="B11",0,if(S1Q1=="B12",2,if(S1Q1=="B13",5,10)))} points

And how do you want to handle the multipunch questions?

Joffm
  • Joffm
  • Joffm's Avatar
30 Oct 2023 16:48
We do not know how you want to calculate the score.

E.g. let's take your xample (multiple question with six subquestions, obviously 3 are correct)
How you count the "correct" answers, you know.
But the respondent will get the same result if he selects all subquestions. So this is not really useful.

a. You could consider to add one point for each correct answer and subtract one point for each wrong answer.
b. Or you only sum points if there is no wrong answer at all.
c. Or you give 1 point, if there is 1 correct answer, 3 points, if there are 2 correct answers and 7 points, if there are all 3 correct answers.
c1. And subtract 2 points for each False answer.

For all these scenarios it would be convenient to use subquestion codes like
C01, C03, C05 for the "Correct" answers
F02, F04, F06 for the "False" answers

Then with the use of the variable "that"
[url] manual.limesurvey.org/ExpressionScript_-....22that.22_variables [/url]

a. {count(that.Q1.sq_C)-count(that.Q1.sq_F)}
b. {if(count(that.Q1.sq_F)>0,0,count(that.Q1.sq_C))}
c. {if(count(that.Q1.sq_C)==1,1,if(count(that.Q1.sq_C)==2,3,if(count(that.Q1.sq_C)==3,7,0)))}
c1. {if(count(that.Q1.sq_C)==1,1-2*count(that.Q1.sq_F),if(count(that.Q1.sq_C)==2-2*count(that.Q1.sq_F),3,if(count(that.Q1.sq_C)==3,7-2*count(that.Q1.sq_F),-6)))}

Just create a question if type "equation" and enter your desired function.

But unless we do not know what and how you want to calculate your score (and please, do not try to use "assessment rules", this is stone age and outdated since we have ExpressionManager/Script, which is much more flexible) we can't help better..

Nevertheless you may use assessment values (always usefil, if in a single punch question you would like to have negative weights or the same weight fir different answer options.
Easy to mix, as long as you use the correct access
[url] manual.limesurvey.org/ExpressionScript_-...#Access_to_variables [/url]

You access the code by {Q1[.NAOK]} and the assessment value by {Q1.value[NAOK]}   [] = optional

Read the manual about ExpressionScript, download and study the sample surveys
[url] manual.limesurvey.org/ExpressionScript_sample_surveys [/url]
to get familiar with the functions and their syntax.

Joffm
  • Joffm
  • Joffm's Avatar
29 Oct 2023 16:52
The link @tpartner gave explains how to fill a question with an URL parameter.
So, idf the question has the same name as the parameter, it will be stored there.
This is the same as.
I want to capture am URL parameter in my survey.
So, if the panel provider adss the parameter "leger_id" it is sufficient to create a question "leger_id".

The "panel integration" is IMHO only necessary if the parameter does not match the requirements of a LimeSurvey question code (starting with a number, contains underscores, etc). Then you have to use panel integration, to store the value of the "not allowed" parameter name into a question with an "allowed" name.
Also IMO do not use this "PASSTHRU".

Also sufficient ti pipe the variable into the end url like

api.legerweb.com/PassBack.aspx?pid={lege...}&SURVC=LW30802_010A ...


Now something about your survey design.
Do you really think people find it amazing to be bombarded by with 17 long batteries of items without time to breath
Please read this
 

File Attachment:

File Name: surveyfrie...0-29.zip
File Size:977 KB


Then two other things.

A. In G03Q40 there is a huge equation.
1. What for is the "join"? It is a single punch response with one answer.
2. Why did you do this?
If you had useed numerical codes in G01Q50 (1-8) and G01Q02 (1-13) you could havve done it with this simple equation
{G03Q39=(G01Q02-1)*8+G01Q50}

BTW: There is a mistake in your long equation here ...
if((G01Q02.NAOK == "001") AND (G01Q50.NAOK == "AO07"), "007"), if((G01Q02.NAOK == "001") AND (G01Q50.NAOK == "AO07"), "008"), if((G01Q02.NAOK == "002") AND (G01Q50.NAOK == "AO01"), "009"),

B. You show the map four times.
Why has the respondent to enter his city four times?
1. After his first choice you can set the sart goordinates of the following maps to the selected one
2. The map starts with "canada" and a really high zoom.
But you have the postcode?
Why don't you use it to show only a map of this area?
If you use the first three characters (FSA) you can show a map that is more pleasant to handle.


And last, but not least:
When I completed your survey with an arbitrarily parameter 123456ABCDEF

I get this end url
Code:
https://api.legerweb.com/PassBack.aspx?pid=123456ABCDEF&SURVC=LW30802_010A&flag=C&idCamp=119526&etk=2a854797-7539-4854-a889-3db58eca08e5
and this page
 

So, it looks fine though we do not know exactly which parameter Leger really adds to the survey.

Joffm
 
  • Joffm
  • Joffm's Avatar
20 Oct 2023 23:28
Replied by Joffm on topic How to lay a grid over a map?
To answer your first question:
Use a question of type equation where you set the lat and long of the selected city. I suppose it is a single punch question.
Equation question "coord"
{if(city==1,'50.22222 8.12345',if(city==2,'45.3456 12.2345',if(city==3,....

Then you enter {coord} in "default position".

The second question? I do not understand your goal. Can you show something?

Joffm
  • Joffm
  • Joffm's Avatar
26 Jun 2023 13:41 - 26 Jun 2023 13:42
Replied by Joffm on topic participation survey
Hi, 
in your version there is included the plugin "statFunctions" (maybe you have to activate it).
Unfortunately you didn't answer all questions at the beginning.

With this you count the number of selected seats.

As there is no subquestion relevance on single punch questions you have to use a hidden multiple question where you preset the still available options by an equation, and set the array filter of your single question on this multiple.

If you are able to read German or to use Google translate:
In the German part of the forum (page 6,7,or 8) you find my "Tutorial 3: Gimmicks..." where this is shown (with some sample surveys)

Joffm
Displaying 16 - 20 out of 20 results.

Lime-years ahead

Online-surveys for every purse and purpose