Welcome to the LimeSurvey Community Forum

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

how to edit question type of active survey?

  • kimberhos
  • kimberhos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago #155933 by kimberhos
I want to change qid 199 question type from * to S. S means short text type.
Then I edit mysql lime_questions table, update qid 199 type to S, but doesn't work.
anyelse should i edit?
The following user(s) said Thank You: ciphr
The topic has been locked.
More
6 years 10 months ago #162064 by ciphr
Id also like some info on how to change a question type from 'multiple choice' to 'choose only one answer'
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #162065 by holch
Backup data --> Deactivate survey --> Change Questio type

You probably won't be able to reimport the previous answers, because due to the different question type the older responses are not compatible with the database anymore.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: ciphr
The topic has been locked.
More
6 years 10 months ago #162068 by ciphr
Or more specifically when a particular answer is selected the other questions will not be selectable
The topic has been locked.
More
6 years 10 months ago - 6 years 10 months ago #162070 by ciphr
Hey, Thanks holch. It is awesome that you are responding to people man, Thanks. Isn't there a way to use JavaScript to control on-clicks events for multiple choice questions within LimeSurvey? Where would I apply this javascript?...In the editor of the subquestion maybe?
Last edit: 6 years 10 months ago by ciphr.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago - 6 years 10 months ago #162079 by tpartner
Replied by tpartner on topic how to edit question type of active survey?
Here is some documentation on how to use JavaScript in a survey - www.limesurvey.org/manual/Workarounds:_M...tc..29_in_LimeSurvey

I cannot give further advice without some specifics on what behaviour you want to achieve.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 10 months ago by tpartner.
The topic has been locked.
More
6 years 10 months ago #162083 by ciphr
Well at the moment I have a multiple choice question in a live survey (e.g. Q10) and I am unable to change the type because the survey is currently active. The question is as follows:

Have you been employed for the last 6 months? Please select all that apply.

- Employed/working 5 or more days per week

- Employed/working 4 or fewer days per week

- Going to school/studying

- Too ill/sick to work

- Handicapped, cannot work

- Housework/ childcare

- Something Else

- Do not want to answer

These subquestions are multiple choice, so users can choose one or choose all of them. But what id like to do is, If the user chooses the last one (DO NOT WANT TO ANSWER) I want every other option that is selected to DESELECT all checkboxes. I don't know if Javascript or Jquery can be implemented in that manner in a subquestion edit box or not. I was thinking an onclick event or something along those lines.

Thanks for any feedback that you could provide
CiPHR Team
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #162084 by tpartner
Replied by tpartner on topic how to edit question type of active survey?
There is an exclusive option setting available - www.limesurvey.org/manual/Question_type_...xclude_all_others.29

If you don't like that, here is a JavaScript solution - www.limesurvey.org/forum/can-i-do-this-w...-checkboxes?start=15

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose