Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: punch)

  • EnzmannD
  • EnzmannD's Avatar
22 Jun 2025 10:08 - 22 Jun 2025 10:12

The least thing you'd mention is the LS version you are using.

LimeSurvey Community Edition Version 6.13.2

You did not answer the questions that appeared at the beginning. You removed them.

I don't know which questions you are referring to -- I am not aware of having removed any of your questions (perhaps by accident, I don't know how this would be possible).

Why do you first export and import into SPSS to get the data in STATA?
Why don't directly export to STATA?

This is a misunderstanding, I did export the questionnaire data from LimeSurvey into SPSS format, but I did not import the exported SPSS data (.sav) with SPSS. I did not directly export from LimeSurvey into a Stata format file (the only option is .xml, not .dta) because the last time I tried (with an older LimeSurvey version about 3 years ago) the resulting data in Stata were not in the form I need them (the exact problems I don't remember). As far as I know I tried all ways to export data from LimeSurvey (into Stata (.xml) directly, into CSV files, into Excel, into R (data file), and into SPSS (.sav) using different methods) but only one method resulted in satisfactory data with missing values, labels, and paradata, format of multiple response question, etc.

I am exporting the questionnaire data from LS into SPSS format via "Responses" -> "Export Responses" -> Export format SPSS, export language English, Range (first to last record), Full answers (convert Y to 1 and N to 2). The more direct way via "Responses" -> "Export responses to SPSS" does not export paradata (e.g. time at all pages) and results in unsatisfactory formatting of multipe reponse questions, missing values, and answers to "other" fields.

But now I see that you did not talk about an open question, but probably about the "other" option of a single punch question.
Meaning: your first variable "vroptptpother" seems to be a "numeric" question,
but the other one "vroptbtp_other" seems to be an "other" option.
Therefore it is really advisable to send a lss export.

I don't know what "a single punch question" is (I am not a LS expert and I did not program the LS questionnaire myself but simply try to do the data cleaning of data collected with LS qustionnaires). I notice that there are two kinds of open field questions, (1) as a follow-up question that seems to contain data sometimes in string and sometimes in numeric format (also depending on the way .sav data are imported by SPSS, PSPP, or Stata), and (2) as open field questions set up in LS in a different way (I don't know how this has been done). In variant (1) note that the values of the filtering question contains either the number 1 (if the respondent did choose "no" with empty content of the follow-up question) or the string "-oth-" if the respondent did choose "yes", whereas in variant (2) the filtering question contains the numbers 0 (if the respondent did choose "no") or 1 (if the respondent did choose "yes").

I don't know what you mean by "Therefore it is really advisable to send a lss export." Do you ask to send (attach) the .lss export file here (at my post to the forum)?

But the problem of exporting from LimeSurvey and importing to Stata (or the issues with different ways the data appear in Stata as a consequence of the method of exporting questionnaire data from LS) is not my issue here -- I am explaining this only because you asked.

I already wrote: "Survey logic file".
Then just search for (CTRL-F)  "num_value"

I don't know what a "Survey logic file" is -- how can I obtain this from LS?

You see in the syntax file the RENAME command at the end.

I don't know to what syntax file you are referring. I did to show you any syntax file and I don't get a (SPSS?) syntax file when exporting questionnaire data from LS.

Or export the survey as *.txt, open in Excel (OpenOffice) and have a look at the columns "max_num_value_n" and "min_num_value_n"

Thanks a lot, this solves it!
 
  • Joffm
  • Joffm's Avatar
21 Jun 2025 18:47 - 21 Jun 2025 18:54
Hi, that you get the variable name in SPSS is obvious.
You see in the syntax file the RENAME command at the end.
But that's not relevant.

I am searching for a way to determine quickly (easily) the LimeSurvey open field questions

I already wrote: "Survey logic file".
Then just search for (CTRL-F)  "num_value"

Or export the survey as *.txt, open in Excel (OpenOffice) and have a look at the columns "max_num_value_n" and "min_num_value_n"

But now I see that you did not talk about an open question, but probably about the "other" option of a single punch question.
Meaning: your first variable "vroptptpother" seems to be a "numeric" question,
but the other one "vroptbtp_other" seems to be an "other" option.
Therefore it is really advisable to send a lss export.

In a "numeric" question (restricted or not) I always get a numeric variable in SPSS.
I will check what happens if it is an "other" option.

1. I wonder where SPSS is to store this restriction?
2. Anyway; this is not contained in the syntax file.


And something nearly forgotten.
You did not answer the questions that appeared at the beginning. You removed them.
The least thing you'd mention is the LS version you are using.
 

And a last thing.
Why do you first export and import into SPSS to get the data in STATA?
Why don't directly export to STATA?

Joffm
  • holch
  • holch's Avatar
20 Mar 2025 12:41
Replied by holch on topic Assessment and Multpile Choice Questions
First of all, no need to post more than once. As a new user your post needs to go through a moderation process and only shows up when approved by a moderator.

Now to your question: Multipunch questions have a fixed assessment value of "1" for each box that is marked. That is why you don't see the assessment value field. That might be inconvenient, but remember, the assessment function is really old and basically depricated. Since there is expression manager, we mostly create our own more flexible assessment via that function. Gives you a lot more flexibility and also allows you to save the values to the database, while the assessment function did not save the values.
  • jparis
  • jparis's Avatar
19 Feb 2025 20:05 - 19 Feb 2025 20:06
Replied by jparis on topic pdfReport HowTo

As far as I remember you started this thread with something like "How to store and display previous results of a test".
And the topic was "pdfReport HowTo"
But now this seems to be something quite different.
Nothing about pdfReport, nothing about the results of the test.
Please "New topic - new thread"


Oh!, my fault, sorry about that, just seemed to me that open new threads for different questions related to the same projecto would be worst that maintain all related stuff in this one. I'll follow your instructions next time.

So you want to let the participant choose a test and when he opens the survey the next time this already completed test isn't available anymore.


No exactly, all I need is the participant to see only the "allowed" test for him, I would use an extra attribute on the participants list with the lower test he can take, example: if you have '3' in the attribute you can take test number 3 and 4 and 5 and so on but you can't access test s1 and 2.

As bootstrap buttons are "single punch" questions, - and these question types do not support conditions it's a bvit tricky.


I can use any other option, I choose this kind of question as it liked to me but any other one that do the job will be fine.

Send the lxss export of your survey.( only the relevant questions)


I'll do when more elaborated, first I want to try, test and play with ExpressionScript to learn more about it.

And:You need me to create that translated to spanish?What makes you think this?
Denis only showed the link to the plugin. and offered help.


Denis wrote "Else : when you want : you can send me offer to create README.md and manual and tips on extensions.sondages.pro/ :)" and I understood "send me offer to" like he would like me to do something (something that I would kindly do) for him.
So sorry, was like the movie... Lost in translation... forget it.

Paris
  • Joffm
  • Joffm's Avatar
19 Feb 2025 13:12 - 19 Feb 2025 13:14
Replied by Joffm on topic pdfReport HowTo
Hi,
As far as I remember you started this thread with something like "How to store and display previous results of a test".
And the topic was "pdfReport HowTo"
But now this seems to be something quite different.
Nothing about pdfReport, nothing about the results of the test.
Please "New topic - new thread"

So you want to let the participant choose a test and when he opens the survey the next time this already completed test isn't available anymore.

This you also do with the already mentioned plugin.
As bootstrap buttons are "single punch" questions, - and these question types do not support conditions it's a bvit tricky.

Send the lxss export of your survey.( only the relevant questions)

And:

You need me to create that translated to spanish?

What makes you think this?
Denis only showed the link to the plugin. and offered help.

Joffm
 
  • Joffm
  • Joffm's Avatar
19 Dec 2024 16:03 - 19 Dec 2024 16:04
@holch already mentioned the main options.

1. A following question "Which one?"

2. A question of type "multiple with comments" where you hide the not needed comment  fields
 
Restrict the number of answers to 1.
In my understanding of language "mainly" always indicates single punch.

3. Another option would be this
 
In my opinion an open question is not really useful. You will get many, many different ways of naming and spelling. (und jedes Fitzelfach kommt dann)
It is better to limit yourself to 5-6 subjects, the main fields of study - and "Other"

But make sure that you are allowed to use javascript. Reading "hosted by my university" I doubt. Many admins do not allow this.

The screenshots are taken from my "Tutorial 2: Mehrfachennungen,... (in the German part). And right at the beginning you find a small test to find out, if javascript is possible.

Joffm

Wieder einmal unnötigerweise viel Englisch. Muss das denn sein?
  • holch
  • holch's Avatar
27 Sep 2024 15:41
Replied by holch on topic Edit other Option
I am also confused by this question, just like Joffm.

The question asks people to "rank" up to 5 options (out of 6 total options???) and the question type is a multipunch question.

How can you rank via a multipunch question? You can chose up to 5 that are important, but I wouldn't call this a "ranking".
  • holch
  • holch's Avatar
06 Sep 2024 21:46 - 06 Sep 2024 21:53
Replied by holch on topic setting data for hidden variables
I don't know how Conformit does it, but I expect also some kind of scripting.

I've seen something about ExpressionScript which seems very long winded imo (unless im misunderstanding it's power)?


ExpressionManager/Script is the way to go. Might look intimitating at the beginning, but it isn't all that bad. Your example is actually relatively simple.

Let's assume you have the following scenario:

Q1: What is your age? (OE)
Q2: What is your age? (Single response - hidden via GUI)
[1] 0-17
[2] 18-64
[3] 65+
Q3: Equation type question.

Then you will "loop". You create some if clauses in Limesurvey. I simplified it to 3 answer options (below 18, 18-64 and 65+), for demonstration. Don't want to loop "a thousand" times here.

This is just an example to start from. I have not tested it, also because you did not provide a LSS example of your structure and I am too lazy now to create one. So this might not work straight out of the box, but you will understand how it works.

I highly recommend to have a look at  www.limesurvey.org/manual/Expression_Manager . You don't need to read it all, but it will give you an idea of what you can do with it. It works very similar to many other script languages, a little bit like formulas in excel.

The if clause works like this: if([condition to be met], [if condition is met, what should LS do], [else, if condition is not met, what should limesurvey do?]). 

In your case you need to put addition if clauses in the "else" section, because you have more than 2 age brackets. Something like this: 

Code:
{if(Q1<18, Q2==1, if(Q1<65, Q2==2, Q2==3))}


So basically you check if the answer in Q1 is smaller than 18, if so you asign the answer "1" to Q2. If not, you continue and check if the number is smaller than 65, if so you can apply code 2, because if it would have been smaller than 18 it would already have been asigned a 1 and the if loop would have finished. So the person must have given a number between 18 and 64. And then "else" the number must be 65 above, because it is not smaller than 18 and not smaller than 65. So it must be bigger than 65.

But actually, not sure why you even need the hidden single punch question. You could just write the answer codes into the equation. OK, to work with it you would need to know what each code means, but I assume you would remember that. :-)
  • holch
  • holch's Avatar
27 Aug 2024 17:02

Is there any way to store the response times of individual questions


This is tricky, because when is a question "answered"?

Multipunch questions: When do we consider this question as answered? after the first click? Last click? But how to know when the last click was done?

Singlepunch questions: Here it is easier, because you can only choose one option. But what if someone clicks one answer and then changes the idea?

Open-ended questions: When is the question answered?

In general, if you have more than one question per page, people can always easily go back and change the anwers. So I don't see a good way to measure response time per question if you don't show the questions one per page.
  • holch
  • holch's Avatar
19 Aug 2024 15:09
Erstmal würde ich die erste Frage aufsplitten und erstmal nur die Tierarten aufzählen die gehalten werden (finde "Produktion" in diesem Zusammenhang irgendwie unglücklich, auch wenn das unter Bauern offensichtlich durchaus ein gängiger Begriff ist. Aber das ist ein anderes Thema, ich schweife ab).

Das ganze als Multipunch-Frage, sprich mit checkboxes so dass der Teilnehmer mehrere Tierarten ankreuzen kann.

Im Nächsten aufwasch würde ich dann eine Frage anbieten, die nur die ausgewählten Tierarten zeigt und dort dann die Anzahl der Stallungen pro Tierart abfragen. Da stellt sich die Frage mit welchem Fragetyp man das am besten macht.

Vorab solltest du dich aber fragen, wie viele Ställe denn wahrscheinlich sind? Ist die Anzahl endlich, also irgendwo zwischen 1 und 5 oder kann das auch wesentlich grösser werden, z.B. 10+

Denn am Ende musst du ja für jeden Einzelstall ein Kästchen anbieten in das die Anzahl der m² kommt.

Ich würde vermutlich nach der ersten Frage verschiedene Zweige für die verschiedenen Tierarten anbieten (sprich Fragengruppen bilden). Die werden dann angezeigt, wenn die Tierart in der ersten Frage ausgewählt wurden, das macht man via Conditions.

Dann eine Dropdown-Frage mit den optionen 1, 2, 3, 4, ...., x Ställe für Tierart XYZ. Und dann wird eine Frage mit Multiple Numerical Input verwendet ( www.limesurvey.org/manual/Question_types...iple_numerical_input ). Die muss natürlich so viele Unterfragen/subquestions haben wie du in der Dropdown-Frage zur Auswahl anbietest. Die Unterfragen werden dann eben via Conditions angezeigt oder nicht. Sprich, wenn es "nur" zwei Ställe für Kühe gibt, werden halt via Condition ab Stall 3 alle ausgeblendet.
  • holch
  • holch's Avatar
01 Aug 2024 02:32
Array filter does not work with single punch questions as a source of the exclusion. So you would have to work around this with multipunch questions set by equation questions.
Displaying 1 - 11 out of 11 results.

Lime-years ahead

Online-surveys for every purse and purpose