Welcome, Guest
Username: Password: Remember me

TOPIC: Add new field in a multiple choice question

Add new field in a multiple choice question 1 year 7 months ago #92596

  • gabrielet
  • gabrielet's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Thank you received: 1
  • Karma: 0
Hi to all,

i have a little question for you.
I have a multiple choice question.
I have to create for response 1, 2, 3 and 4 with label other.
Then i have to create a text field called Motivation down the previuos response.

How do i do this?

I could use other option and then rename it motivation but i'm afraid that limesurvey can give an id to "other" and i could have problem with some questions that have the field other with text...

Thanks
Gabriele
The administrator has disabled public write access.

Add new field in a multiple choice question 1 year 7 months ago #92598

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4185
  • Thank you received: 785
  • Karma: 359
The easiest way to handle this would be to add a short-text following the multiple-choice and show it conditionally when "Motivation" is checked.

Searching the forums should yield lots of tips on how to make the two questions appear as one.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Add new field in a multiple choice question 1 year 7 months ago #92601

  • gabrielet
  • gabrielet's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Thank you received: 1
  • Karma: 0
Hi and thanks for your response,

but i'd like to show always the short text and not condittionaly.
I' ve attached an example.

I can create two different question and then join into one? How?

Gabriele
Attachments:
Last Edit: 1 year 7 months ago by gabrielet.
The administrator has disabled public write access.

Add new field in a multiple choice question 1 year 7 months ago #92613

  • gabrielet
  • gabrielet's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Thank you received: 1
  • Karma: 0
To better understand what i'd like to, i attach an example below

Thanks
Gabriele
Attachments:
The administrator has disabled public write access.

Add new field in a multiple choice question 1 year 7 months ago #92655

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4185
  • Thank you received: 785
  • Karma: 359
CSS details would differ depending on the template used.

It looks like you are using the Limespired template so these styles added to the end of template.css will make a multiple-options with question ID 11 followed by a short-text with question ID 22 appear to be one.
#question11 .survey-question {
	margin-bottom: 0;
	border-bottom: 0 none;
}
 
#question11 .subquestions-list {
	margin-bottom: 0;
}
 
#question22 .survey-question {
	border-top: 0 none;
}
 
#question22 .survey-question-text,
#question22 .survey-question-answer {
	float: left;
}
 
#question22 .survey-question-text {
	margin: 0 0 0 10px;
	font-weight: normal;
}
 
#question22 .survey-question-answer p {
	margin: 0 0 10px 0;
}

Capture_2013-02-14.JPG
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Add new field in a multiple choice question 1 year 7 months ago #92666

  • gabrielet
  • gabrielet's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Thank you received: 1
  • Karma: 0
Thanks very much is perfect.

I'm thinking about js but i think this is the best solution!

Thanks!!!
Gabriele
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.121 seconds
Donation Image