Menu

#1 date input field : set_default works differently

open
framework (9)
5
2012-01-31
2010-11-26
No

For date input fields, the set_default function behaves differently than the other input fields.
Calling set_default without parameter changes the value of the field to the default value. If the parameter has a value, the default-value is changed to this value.
For the date_input_field, set_default with a parameter sets the value to now(), ignoring the default value of the date_field.

A similar problem might exist with the time and datetime input fields (untested).

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.