- Posts: 10635
- Thank you received: 3699
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Is there a way to ask for a month and year in a single question?
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
10 years 2 months ago #103408
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 Is there a way to ask for a month and year in a single question?
Please test
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- mrli999
- Offline
- Premium Member
Less
More
- Posts: 155
- Thank you received: 2
10 years 2 months ago #103409
by mrli999
It doesn't work. I remove the first/. Maybe you want to remove the last / in that case.
Replied by mrli999 on topic Is there a way to ask for a month and year in a single question?
tpartner wrote: Please test
It doesn't work. I remove the first/. Maybe you want to remove the last / in that case.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
10 years 2 months ago #103410
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 Is there a way to ask for a month and year in a single question?
Change this:
To this:
Code:
$('span.date-separator:eq(0)', thisQuestion).hide();
To this:
Code:
$('span.date-separator:eq(1)', thisQuestion).hide();
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mrli999
The topic has been locked.
- mfaber
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 10
10 years 2 months ago #103411
by mfaber
Replied by mfaber on topic Is there a way to ask for a month and year in a single question?
If you are using a fairly recent version of 2.05 (after October/2013, the month/year format should be "natively" supported (without javascript) in Limesurvey. Just create a normal date question and for example enter yyyy-mm in the date format field.
You should get the datepicker without the "calender" part. Hope this helps....
You should get the datepicker without the "calender" part. Hope this helps....
The following user(s) said Thank You: mrli999
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
10 years 2 months ago #103412
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 Is there a way to ask for a month and year in a single question?
Yes, ignore everything I said about 2.05 and follow mfaber's instructions
mfaber, can you please add this to the docs?
mfaber, can you please add this to the docs?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- mfaber
- Offline
- Senior Member
Less
More
- Posts: 41
- Thank you received: 10
10 years 2 months ago #103427
by mfaber
Replied by mfaber on topic Is there a way to ask for a month and year in a single question?
sure! i'll overwork the whole part on dates and the date question soon...there have also been many other changes...
The following user(s) said Thank You: DenisChenu, mrli999
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
10 years 2 months ago #103429
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 Is there a way to ask for a month and year in a single question?
Thank you very much. You've been doing great work with that and Expression Manager.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mrli999
The topic has been locked.
- mrli999
- Offline
- Premium Member
Less
More
- Posts: 155
- Thank you received: 2
10 years 2 months ago #103469
by mrli999
thank you very very much! it works.
Replied by mrli999 on topic Is there a way to ask for a month and year in a single question?
mfaber wrote: If you are using a fairly recent version of 2.05 (after October/2013, the month/year format should be "natively" supported (without javascript) in Limesurvey. Just create a normal date question and for example enter yyyy-mm in the date format field.
You should get the datepicker without the "calender" part. Hope this helps....
thank you very very much! it works.
The topic has been locked.