Check out the LimeSurvey source code on GitHub!

Add Text to "Year" Dropdown?

More
2 years 11 months ago #106423 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

Please Log in to join the conversation.

More
2 years 11 months ago #106439 by tpartner
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.

Please Log in to join the conversation.

More
2 years 11 months ago #106472 by lmw1
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

Please Log in to join the conversation.

More
2 years 10 months ago #106970 by lmw1
Anyone?

Please Log in to join the conversation.

More
2 years 10 months ago #106990 by tpartner
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.

Please Log in to join the conversation.

More
2 years 9 months ago #108388 by Gophermuncher
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
Attachments:

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form