Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Changing subquestion code into custom code

Changing subquestion code into custom code 2 years 11 months ago #102686

  • agnesch
  • agnesch's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hello everyone,
I'm new to LimeSurvey and I've just installed version Version 2.05+ Build 131209.
I've begun to build my survey and I've added a Multiple Choice question.
As for the subquestions, the software is creating a code, which I would like to change into custom codes, so that I already have a coded sheet when I will export my survey.
Problem is, the software doesn't allow for me to change the automatic code into a custom code.
Is this a bug of LimeSurvey or am I doing something wrong?
I would like to have the subquestions coded as 1, 2, 3, and so on, and not SQ001, SQ002, SQ003... (see attachment).
Also, I would like to have a custom code for Other, e.g. 66.
I would very much welcome any tip!
Thank you so much for your help and hope to have posted in the right section!
Agnese
Attachments:
The administrator has disabled public write access.

Changing subquestion code into custom code 2 years 11 months ago #102687

  • holch
  • holch's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5432
  • Thank you received: 810
  • Karma: 240
You should be able to change this code to 1,2,3 without a problem. What happens when youdo so? Do you save the changes after changing?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
The following user(s) said Thank You: agnesch

Changing subquestion code into custom code 2 years 11 months ago #102714

  • agnesch
  • agnesch's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hello holch,
thank you for answering.
When I try to save the subquestion code using only a number (e.g. 0, 1, 2...) the software doesn't allow me to save and it says I need to name the code appropriately.
Before I was on the IRC chat and a user told me that the subquestion codes must always start with a letter. This kind of makes sense if you think of the subquestions of a Multiple Choice question as single variables, which are then coded Y (yes, if ticked) or N (no, if not ticked).
On the other hand, if you use an Array question, you can choose the Answer Options and code them as 1, 2, 3, 66 (or whatever different code) for Other option, and so on.
Question is, if I want to change the way LS codes the answers (e.g. if I want 0 for No and 1 for Yes instead of N and Y), what do I need to do?
Thank you so much again for the help!
The administrator has disabled public write access.

Changing subquestion code into custom code 2 years 11 months ago #103147

  • david2013
  • david2013's Avatar
  • Offline
  • Senior Lime
  • Posts: 59
  • Thank you received: 7
  • Karma: 3
Hi,

Version 2.00 doesn't force answer code to start with letter. But Version 2.05 seems does. I'm wondering what's the reason to force subquestions to start with letter. It's really inconvenient if we have long list. (Letter will run out very fast)
The administrator has disabled public write access.
Time to create page: 0.205 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form