Welcome, Guest
Username: Password: Remember me

TOPIC: Changing the dropdown menu format in numeric array question

Changing the dropdown menu format in numeric array question 4 months 3 weeks ago #102091

  • yangxg
  • yangxg's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Dear Users:

I got a problem regarding the numeric array input.

We plan to do the Analytic hierarchy process (AHP) using limesurvey. We prefer to use the dropdown format as it is more convenient for users. The value of AHP used to be “1/3, 1/5” or integers. However, the appeared values in the dropdown list are all numbers (Pic 1).


num.array1.png



For the sake of illustration, I changed the appearance in the desired format by firebugs(Pic 2).


num.array2.png



I would like to know if it is possible to make this happens? How to do it? By javascript? Modifying inter functions? Creating a new question type?

Many thanks for any suggestion or enlightenment.

Yang
The administrator has disabled public write access.

Changing the dropdown menu format in numeric array question 4 months 3 weeks ago #102092

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
If I remember correctly, you can only define the MIN/MAX values for the drop-down. Since data is always stored as a numeric value at the DB, the best approach would be to use JavaScript to adjust the item within the drop-downs.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Changing the dropdown menu format in numeric array question 4 months 2 weeks ago #102112

  • yangxg
  • yangxg's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Thank you for your reply Mazi!

And you mean it is possible to achieve the effect by javascript, right? If so, could you give me some detailed suggestion on how to "use JavaScript to adjust the item within the drop-downs"? I have searched the mannual carefully but didn't find the fittable answer.

By the way. sorry fo the too much faint picure. As the original is very large, I have to resize it.

I am really a newbie in both limesurvey and javascript. Thank you very much for your support.

Yang
The administrator has disabled public write access.

Changing the dropdown menu format in numeric array question 4 months 2 weeks ago #102113

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
I have no example for this JS code available but have seen similar examples at the forums. Please also check manual -> workarounds ->JavaScript.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Changing the dropdown menu format in numeric array question 4 months 2 weeks ago #102224

  • yangxg
  • yangxg's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Thank you Mazi, I will probe into this
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.123 seconds
Donation Image