Actions

QS

Dropdown dates year min: Difference between revisions

From LimeSurvey Manual

(Bug #10011 follow up)
m (Reverted edits by DenisChenu (talk) to last revision by C schmitz)
 
Line 4: Line 4:
<onlyinclude>
<onlyinclude>


===Minimum date (date_min)=== <!--T:139-->
===Minimum year (dropdown_dates_year_min)=== <!--T:139-->


<!--T:140-->
<!--T:140-->
Line 10: Line 10:


<!--T:141-->
<!--T:141-->
This question attribute can be used to set the minimum value for the date calendar question. The date must be any English textual datetime , a date at Y-m-d PHP format or an expression return a Y-m-d PHP format.
This question attribute can be used to set the minimum year value for the calendar question. It applies to the dropdown- and to the popup-variant of the calendar.
If expression have variable in the same page : this can break dropdow date.


<!--T:142-->
<!--T:142-->
'''Valid values'''
'''Valid values'''


* 2015-01-01
<!--T:143-->
* "now"
Any year value
* "-10 years"
* date("Y-m-d", strtotime( AnotherDateQuestion ))


<!--T:144-->
<!--T:144-->

Latest revision as of 13:12, 17 December 2015


Minimum year (dropdown_dates_year_min)

Description

This question attribute can be used to set the minimum year value for the calendar question. It applies to the dropdown- and to the popup-variant of the calendar.

Valid values

Any year value