Welcome to the LimeSurvey Community Forum

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

Are Bootstrap Buttons with different layout per Row possible? (and how)

  • Taliyah-M
  • Taliyah-M's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 1 week ago - 5 months 1 week ago #252108 by Taliyah-M
Your LimeSurvey version: [url=http://localhost/limesurvey/index.php/admin/questions/sa/editquestion/surveyid/841573/gid/4/qid/7#modalSystemInformation]Version 3.28.76+231018[/url]
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Fruity Theme
==================
I started using LimeSurvey for a Uni-Project a llittle bit ago - so i am not that used to coding in Html

For our project we ideally need a selection field where you can only choose 1 option from all the options. I'm thinking that Bootstrap Buttons would be best kind of Selection.
But in that selection field we have a different amount of possible answers in each row - but the row of the answer-option is relevant. 
Ive added an image with a drawing of the ideal layout.
I already learned how to put an image as an option, and in each row, the image would have a different width (therefore different amount of answers in each row)

Is it possible to have a different amount of answers in each row? I couldnt find anything online yet.
Im grateful for any help! 

 
Last edit: 5 months 1 week ago by Taliyah-M. Reason: (a little bit more clarification)

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #252195 by Joffm
What you can try is:
Create a HTML table with your desired layout in the Question text of a question of type "array"
One subquestion and as many answer option as there are images.
Now move the radio buttons into the question text by a script.

Here you get an idea.
Two rows with images of equal width.
Shouldn't be too difficult to adapt-
[url] forums.limesurvey.org/forum/can-i-do-thi...iple-question#250729 [/url]

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago - 5 months 1 week ago #252231 by Joffm
Could look like this
 
And as you display four subquestions you have to create an array with four subquestions and 6 answer options (some are not used)
A simple HTML table with the images.and the shown script with the following changes.
In the script the radio buttons are in the same cells as the image.
In this example there is a separate row below each image.

And please clarify

where you can only choose 1 option from all the options.

One choice of all 14?
Or one choice in each row?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 months 1 week ago by Joffm.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose