Welcome to the LimeSurvey Community Forum

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

Customizing List (Dropdown) Question Type

  • ititca
  • ititca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #174462 by ititca
Is one able to add a text box to allow for a numerical value to be entered in conjunction with the option they've selected from the dropdown list?

See attached for a visual idea of what I'd like to accomplish.

TIA

The topic has been locked.
  • ititca
  • ititca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #174464 by ititca
Replied by ititca on topic Customizing List (Dropdown) Question Type
I did come across Tony's "Multiple Question Types In Array" example survey, which I downloaded and imported as a new survey.

In editing the available question types to just "List (Dropdown)" and "Numerical Input" and re-arranging the order, it doesn't show up as three separate rows (A, B and C).

Now if I could get this tweaked to show as separate rows and implement some other elements (ie: Preventing same dropdown option from being selected for different rows/questions, setting numerical input range between 1 - 60), this very well could suit my needs.

The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 6 months ago #174467 by LouisGac
Replied by LouisGac on topic Customizing List (Dropdown) Question Type
if you're in "all in one" mode, you could create a question group for each pair of {dropdown, numerical entry}, and then create a survey theme that displays those question groups the way you want.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174477 by tpartner
Replied by tpartner on topic Customizing List (Dropdown) Question Type
I would not use "Multiple Question Types In Array". That is a very old workaround intended for many different question types.

Here is an example of an array-texts type question with some inserted dropdowns and some inputs restricted to numerics - www.limesurvey.org/forum/search?query=is...artner&childforums=1

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: LouisGac, ititca
The topic has been locked.
  • ititca
  • ititca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #174498 by ititca
Replied by ititca on topic Customizing List (Dropdown) Question Type
Thanks for your response and assistance Tony.

I've noticed a few different options showing in the thread you referr to in your reply.

Would this be the most suitable option for me to load and edit?

www.limesurvey.org/forum/can-i-do-this-w...list?start=15#173576

And to suit it to my needs, I can simply delete the question types I don't need and rearrange the questions into the order I'm looking for?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174520 by tpartner
Replied by tpartner on topic Customizing List (Dropdown) Question Type
Duh, sorry, I pasted the search URL instead of the correct result. :blush:

Yes, that's the one and you will need to modify it a bit for your needs.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ititca
The topic has been locked.
  • ititca
  • ititca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago - 5 years 6 months ago #174524 by ititca
Replied by ititca on topic Customizing List (Dropdown) Question Type

tpartner wrote: Duh, sorry, I pasted the search URL instead of the correct result. :blush:


All good Tony, at least I was able to find what you specifically had in mind. :)

tpartner wrote: Yes, that's the one and you will need to modify it a bit for your needs.


Is this easy to modify, or should I brew a pot of coffee and set aside a few hours this evening to make the modifications? Lol

I'm not the most proficient with JS, but can figure things out if given some pointers and direction with regards to the elements that need to be edited.
Last edit: 5 years 6 months ago by ititca. Reason: Spelling typo.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174526 by tpartner
Replied by tpartner on topic Customizing List (Dropdown) Question Type
No, it shouldn't be too hard to do. If you get stuck, attache a small test survey containing the array question and I'll tweak it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ititca
The topic has been locked.
  • ititca
  • ititca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #174529 by ititca
Replied by ititca on topic Customizing List (Dropdown) Question Type

tpartner wrote: No, it shouldn't be too hard to do. If you get stuck, attache a small test survey containing the array question and I'll tweak it.


Sounds good. I'll give it a go and see what happens from there.

Thanks again Tony. :cheer:
The topic has been locked.
  • ititca
  • ititca's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago - 5 years 6 months ago #174535 by ititca
Replied by ititca on topic Customizing List (Dropdown) Question Type
So I managed to import it and had a chance to make changes and play around with it. However, I'm still trying to figure out how to change it so that Column 1 is a Dropdown (List) for each of the 6 rows and Column 2 is a small Numerical Input box for a value from 0 to 60.

Find attached a screen shot and the LSS export I generated as per your previous message

File Attachment:

File Name: limesurvey...5886.lss
File Size:27 KB



I've also noticed that when I try to copy or edit the Question Group and select Save or Save & Close, it comes back with a HTTP 501 error. I tried with other surveys to make the same modifications and didn't encounter any issue saving/copying.

I did come across a couple warnings, one theme related, when I imported the LSS file as part of creating a new survey. I also captured the error and have it attached.

Last edit: 5 years 6 months ago by ititca. Reason: Warnings, not errors, occurred during import process. Corrections in Column Label descriptions (1 not A; 2 not B).
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174548 by tpartner
Replied by tpartner on topic Customizing List (Dropdown) Question Type
What LimeSurvey version are you using?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ititca
The topic has been locked.
More
5 years 6 months ago - 5 years 6 months ago #174551 by jelo
What version of LimeSurvey is used? Look at the bottom to see the complete version.
Edit:Sorry, forgot the refresh the thread.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 5 years 6 months ago by jelo.
The following user(s) said Thank You: ititca
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose