Add Text to "Year" Dropdown?

More
3 years 5 months ago #106423 by lmw1
lmw1 created the topic: Add Text to "Year" Dropdown?
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
3 years 5 months ago #106439 by tpartner
tpartner replied the 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.

Please Log in to join the conversation.

More
3 years 4 months ago #106472 by lmw1
lmw1 replied the 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

Please Log in to join the conversation.

More
3 years 4 months ago #106970 by lmw1
lmw1 replied the topic: Add Text to "Year" Dropdown?
Anyone?

Please Log in to join the conversation.

More
3 years 4 months ago #106990 by tpartner
tpartner replied the 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.

Please Log in to join the conversation.

More
3 years 3 months ago #108388 by Gophermuncher
Gophermuncher replied the 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
Attachments:

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now