Actions

QS

Dropdown dates year min: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
(Bug #10011 follow up)
Line 4: Line 4:
<onlyinclude>
<onlyinclude>


===Minimum year (dropdown_dates_year_min)=== <!--T:139-->
===Minimum date (date_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 year value for the calendar question. It applies to the dropdown- and to the popup-variant of the calendar.
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.
If expression have variable in the same page : this can break dropdow date.


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


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


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

Revision as of 13:10, 17 December 2015


Minimum date (date_min)

Description

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. If expression have variable in the same page : this can break dropdow date.

Valid values

  • 2015-01-01
  • "now"
  • "-10 years"
  • date("Y-m-d", strtotime( AnotherDateQuestion ))