Welcome, Guest
Username: Password: Remember me

TOPIC: Add Text to "Year" Dropdown?

Add Text to "Year" Dropdown? 7 months 5 days ago #106423

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
Is it possible to add text to (time/date) dropdowns?

I need to have this text at the very bottom of the "Year" dropdown as a choice:
Before 1960

And I need to add this text to the very top as a choice under each "Month" and "Day" dropdown:
Unknown

Is this possible?

Respectfully,
LMW
The administrator has disabled public write access.

Add Text to "Year" Dropdown? 7 months 5 days ago #106439

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4272
  • Thank you received: 806
  • Karma: 369
That's not possible because that data column is a "datetime" type so cannot record text.

You will need to create your own dropdown question(s) to do this.


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Add Text to "Year" Dropdown? 7 months 4 days ago #106472

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
I see. But how can I do this with "3" dropdowns next to each other horizontally and in the same group? So they look just like the time/date dropdowns do now.

Day - Month - Year

Respectfully,
LMW
The administrator has disabled public write access.

Add Text to "Year" Dropdown? 6 months 3 weeks ago #106970

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
Anyone?
The administrator has disabled public write access.

Add Text to "Year" Dropdown? 6 months 3 weeks ago #106990

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4272
  • Thank you received: 806
  • Karma: 369
You can use JavaScript to move the select elements from 3 separate questions into one.

If you can attach a small survey with the three select-dropdown questions in a single group, I'll give you a code example.


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Add Text to "Year" Dropdown? 5 months 2 weeks ago #108388

Since OP hasn't posted and I have the same issue, do you mind posting a sample code Tony?


File Attachment:

File Name: limesurvey_group_79.lsg
File Size: 37 KB
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.102 seconds
Donation Image