Welcome to the LimeSurvey Community Forum

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

Add Text to "Year" Dropdown?

More
10 years 21 hours ago #106423 by lmw1
Add Text to "Year" Dropdown? was created by lmw1
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 topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 18 hours ago #106439 by tpartner
Replied by tpartner on topic Add Text to "Year" Dropdown?
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.
The topic has been locked.
More
9 years 11 months ago #106472 by lmw1
Replied by lmw1 on topic Add Text to "Year" Dropdown?
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 topic has been locked.
More
9 years 11 months ago #106970 by lmw1
Replied by lmw1 on topic Add Text to "Year" Dropdown?
Anyone?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 11 months ago #106990 by tpartner
Replied by tpartner on topic Add Text to "Year" Dropdown?
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.
The topic has been locked.
More
9 years 10 months ago #108388 by Gophermuncher
Replied by Gophermuncher on topic Add Text to "Year" Dropdown?
Since OP hasn't posted and I have the same issue, do you mind posting a sample code Tony?


File Attachment:

File Name: limesurvey...p_79.lsg
File Size:37 KB
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose