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

  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months 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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago - 3 years 8 months 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: 3 years 8 months ago by Joffm.
The topic has been locked.
  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #202619 by Retail1820
Replied by Retail1820 on topic The question and the answer on a single line
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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months 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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #202638 by DenisChenu
Replied by DenisChenu on topic The question and the answer on a single line
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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #202690 by Retail1820
Replied by Retail1820 on topic The question and the answer on a single line
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.
  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #202691 by Retail1820
Replied by Retail1820 on topic The question and the answer on a single line
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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago - 3 years 8 months 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: 3 years 8 months ago by Joffm.
The topic has been locked.
  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #202699 by Retail1820
Replied by Retail1820 on topic The question and the answer on a single line
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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #202709 by DenisChenu
Replied by DenisChenu on topic The question and the answer on a single line
No : you add class name in CSS Class box : "fifty-fifty"

And you edit your template to add the part i put
manual.limesurvey.org/New_Template_System_in_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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #202763 by Retail1820
Replied by Retail1820 on topic The question and the answer on a single line
Thank you, Denis.
I'm going to try.
The topic has been locked.
  • Retail1820
  • Retail1820's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 8 months ago #202842 by Retail1820
Replied by Retail1820 on topic The question and the answer on a single line
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.

Lime-years ahead

Online-surveys for every purse and purpose