- Posts: 19
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Add Text to "Year" Dropdown?
- lmw1
- Topic Author
- Offline
- New Member
Less
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
10 years 18 hours ago #106439
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
.
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.
- lmw1
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
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
Day - Month - Year
Respectfully,
LMW
The topic has been locked.
- lmw1
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
9 years 11 months ago #106990
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
.
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.
- Gophermuncher
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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?
Attachments:
The topic has been locked.