Add new field in a multiple choice question

More
4 years 1 month ago #92596 by gabrielet
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

Please Log in to join the conversation.

More
4 years 1 month ago #92598 by tpartner
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.

Please Log in to join the conversation.

More
4 years 1 month ago - 4 years 1 month ago #92601 by gabrielet
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: 4 years 1 month ago by gabrielet.

Please Log in to join the conversation.

More
4 years 1 month ago #92613 by gabrielet
To better understand what i'd like to, i attach an example below

Thanks
Gabriele
Attachments:

Please Log in to join the conversation.

More
4 years 1 month ago #92655 by tpartner
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;
}


Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
4 years 1 month ago #92666 by gabrielet
Thanks very much is perfect.

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

Thanks!!!
Gabriele

Please Log in to join the conversation.