Welcome to the LimeSurvey Community Forum

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

Convert radio buttons to buttons in an array / Combine dropdown with short text

  • NoAmore
  • NoAmore's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago - 3 years 4 months ago #208374 by NoAmore
Hello.

I need your kind help please:

1. Could you please help me change radio buttons to buttons in an array? Please find an illustration attached.
My questionnaire is quite long and it would help to press the right buttons when scrolling down. I found the HTML code but do not know how to insert it as part of a JavaScript (please see below).

2. Could you please help me combine dropdown with short text? I tried but it does not seem right. Not sure if the dropdown will register, plus it look aesthetically pleasing. Please find attached.

Kindly suggest if there are better ways to resolve this.

<head>
<style>
.button {
background-color: #f44336; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}


.button2 {background-color: #FFC300;} /* Orange */
.button3 {background-color: #008CBA;} /* Blue */
.button4 {background-color: #4CAF50;} /* Green */

</style>
</head>
<body>

<button class="button">Not at all confident</button>
<button class="button button2">Not so confident</button>
<button class="button button3">Quite confident</button>
<button class="button button4">Very confident</button>
</body>
</html>

I would be grateful for any help.
Thank you.
Alex

File Attachment:

File Name: limesurvey...8969.lss
File Size:41 KB

Last edit: 3 years 4 months ago by NoAmore. Reason: Corrected title
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #208377 by Joffm
Hi,
please, always mention the LimeSurvey version you are using.

2. question
In my opinion you can use the dropdown option of an array(text)


Here a sample survey

File Attachment:

File Name: limesurvey...3961.lss
File Size:18 KB



1. question
I do not see any obstacles to use the "repeat header" option.
Anyway, to avoid "happy clicking" (people just click around,do not really read the item, because the question is too boring) you should split it in 4 or 5.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: NoAmore
The topic has been locked.
  • NoAmore
  • NoAmore's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #208380 by NoAmore
Dear Joffm,

Many thanks for your kind help and I hope you are well! This is just what I needed!
My apologies for missing the survey version: Version 2.50+ Build 160620.

Thanks for your mentorship - I am slowly learning the trait.
With my gratitude,
Alex
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose