- Posts: 3
- Thank you received: 1
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
- Topic Author
- Offline
- New Member
Less
More
6 years 9 months ago #155933
by kimberhos
how to edit question type of active survey? was created 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?
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.
- ciphr
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162064
by ciphr
Replied by ciphr on topic how to edit question type of active survey?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
6 years 2 months ago #162065
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic how to edit question type of active survey?
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.
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.
- ciphr
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162068
by ciphr
Replied by ciphr on topic how to edit question type of active survey?
Or more specifically when a particular answer is selected the other questions will not be selectable
The topic has been locked.
- ciphr
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago - 6 years 2 months ago #162070
by ciphr
Replied by ciphr on topic how to edit question type of active survey?
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 2 months ago by ciphr.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
6 years 2 months ago - 6 years 2 months ago #162079
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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 -
manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey
I cannot give further advice without some specifics on what behaviour you want to achieve.
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 2 months ago by tpartner.
The topic has been locked.
- ciphr
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 2 months ago #162083
by ciphr
Replied by ciphr on topic how to edit question type of active survey?
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
6 years 2 months ago #162084
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic how to edit question type of active survey?
There is an exclusive option setting available -
manual.limesurvey.org/Question_type_-_Mu...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
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.