Welcome to the LimeSurvey Community Forum

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

The question and the answer on a single line

More
5 years 1 month ago #202613 by Retail1820
Hello
I write from Madrid.
I work with LimeSurvey version 3.22.24.
I have one doubt:

How can I put the question and the answer on a single line when both are short?

Thank you very much.
The topic has been locked.
More
5 years 1 month ago - 5 years 1 month ago #202617 by Joffm
Hi, what type of question are you talking about?
Without an example of what you want to achieve it is difficult to anser.

In questions of type "short text" you may use the prefix option
and in "multiple short text" use the settings "label column width" and "text input width"


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 1 month ago by Joffm.
The topic has been locked.
More
5 years 1 month ago #202619 by Retail1820
Thank you, Joffm.
the question type is "Free short text".
I want to put the answer box on the same line of the question, without repeating the name of the question. I can't get to the examples that you have sent me.

Regards
The topic has been locked.
More
5 years 1 month ago #202622 by Joffm
Hi,
at least you should have attached a screenshot of your result.
So we see what you are missing.
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 1 month ago #202638 by DenisChenu
No perfect : add Class name fifty-fifty to the question

in custom.css
Code:
.question-container.fifty-fifty{display:flex}
.question-container.fifty-fifty .question-valid-container{display:none}
.question-container.fifty-fifty .question-help-container{display:none}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
5 years 1 month ago #202690 by Retail1820
Hi Joffm
I tried to add a screenshot of the question, but I couldn't do it because I pressed the "answer quickly" button.
Now I can.

Regards


The topic has been locked.
More
5 years 1 month ago #202691 by Retail1820
Hi Denis
Thank you very much.
I don't know about the "CSS Classes" feature, but I will read the manual to learn how to use it.

Regards
Miguel
The topic has been locked.
More
5 years 1 month ago - 5 years 1 month ago #202695 by Joffm
Well,
you have to do it the other way.
No question text, don't show question number/code.

And hide the "question-title-container" and the "question-valid-container" as Denis showed (the universal way)
A short way - if you only need it for one or two questions - is to enter into the question text
Code:
<style type="text/css">
.question-title-container, .question-valid-container, .question-help-container
  {
    display:none
  }
</style>



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 1 month ago by Joffm.
The topic has been locked.
More
5 years 1 month ago #202699 by Retail1820
Thank you very much, Joffm.
I followed your instructions, applied your script in the name of the question and managed to hide it in the question view. It's going to come in useful in a certain question.

Denis
I' m sorry, I put your script in the CSS_Class box, then in the question title, but in no way did I achieve the goal I was looking for. I have searched the Internet for information about CSS_Class, but my knowledge is very insufficient to develop a script and apply it.
Anyway, thank you very much.

Regards
The topic has been locked.
More
5 years 1 month ago #202709 by DenisChenu
No : you add class name in CSS Class box : "fifty-fifty"

And you edit your template to add the part i put
www.limesurvey.org/manual/New_Template_S...n_LS3.x#Theme_Editor

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
5 years 1 month ago #202763 by Retail1820
Thank you, Denis.
I'm going to try.
The topic has been locked.
More
5 years 1 month ago #202842 by Retail1820
Hi Denis
The version of LS I have, 3.22.25, does not yet have core themes for survey questions (I show you a screenshot). I can't extend any question theme to edit it, except that there is another way to do it, but I don't know it.

Regards
The topic has been locked.
More
5 years 1 month ago #202843 by DenisChenu
Extend Survey core theme (vanilla for exemple) , i NEVER talk of Question Theme, and i give ypou the link to Survety theme …

Add in custom.css the line i show you

Add CSS class fifty-fifty to the needed question

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
5 years 1 month ago #202866 by Retail1820
Hello Denis

Thank you very much for your help and patience with me.

I finally made it (see attached file).
A small remark, although it is not important for me: the "Help" message is not shown, even if the "Hide tip" button is disabled (Off).

This survey is part of my PhD thesis and I want to send it in September.

Thank you so much again.

Regards

Miguel
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose