Text or number input with additional answer options

  • holch
  • holch's Avatar Topic Author
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
7 years 4 weeks ago #77300 by holch
I am currently working on a questionnaire, which is more for data entry of a paper & pencil questionnaire, so there are some things a little different.

I do have quite often the need to ask a value, but then give the options of "don't know" or "No answer".

What was the purchasing price of your vehicle?

$ __________

Don't know Code 8
No answer Code 9

I tried to solve it with a "list with comment" and there is only one field for the value, which is good. But it is a big field.

Then I tried it with "multiple with comments", which looks better. Then I tried to limit max. and min. answers, which doesn't seem to work.

Does anyone have a better idea?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
7 years 4 weeks ago #77312 by tpartner
Hi Holch,

I don't think you'll be able to do it properly with one question. I think you'll need a multiple-options (so they can be unchecked) set to max answers = 1 and a short-text or numeric question.

Then I see 2 options for presenting them:

1) Use CSS to make the questions appear as one and put a condition on the text question so it is only displayed if no multiple-options are checked.

2) Use a little JavaScript to:
- Hide the text question
- Move the text input field into the multiple-options question
- Make the text input field and the checkboxes exclusive

I can help with either option if you give me a small sample survey and let me know what template you are using.

Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!