How to set a dafault date value for a date input field?
Posted: 2015-12-14 21:39
I have an application to record tasks which are saved on an agenda table, where each record is a task to run with it's own data.
I also have a full month view of a calendar, and I need to allow the operator to add a new record in some specific date by just clicking on that date. I can customize that link to open the table and get into the add function with a link like this: "http://myserver/agenda_view.php?addNew_x=1"
but then, the default date will always be the "today" date (or whatever default value I have placed into the appgini parameters).
To make this default value dynamically set, I need to send in the link, the date of the calendar-day-clicked.
In other words, what is the name of the variable to get a default value for a date field? is this possible?
I already have tryed several ways which none of them works:
(where $add_date has the value of ie. 2015-12-30 as well as $add_year, $add_month, $add_day which are "2015","12","30")
"http://myserver/agenda_view.php?addNew_ ... =$add_Date"
"http://myserver/agenda_view.php?addNew_ ... =$add_date"
"http://myserver/agenda_view.php?addNew_ ... y=$add_day"
Anybody that have tried this?
I also have a full month view of a calendar, and I need to allow the operator to add a new record in some specific date by just clicking on that date. I can customize that link to open the table and get into the add function with a link like this: "http://myserver/agenda_view.php?addNew_x=1"
but then, the default date will always be the "today" date (or whatever default value I have placed into the appgini parameters).
To make this default value dynamically set, I need to send in the link, the date of the calendar-day-clicked.
In other words, what is the name of the variable to get a default value for a date field? is this possible?
I already have tryed several ways which none of them works:
(where $add_date has the value of ie. 2015-12-30 as well as $add_year, $add_month, $add_day which are "2015","12","30")
"http://myserver/agenda_view.php?addNew_ ... =$add_Date"
"http://myserver/agenda_view.php?addNew_ ... =$add_date"
"http://myserver/agenda_view.php?addNew_ ... y=$add_day"
Anybody that have tried this?