developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 12 years ago
Closed 12 years ago
#773 closed bug (invalid)
jForms Date : Could be initialized from a controller to a default value
Reported by: | foxmask | Owned by: | |
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | jelix:forms | Version: | trunk |
Severity: | trivial | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
in my foo.form.xml i define a date
<date ref="dl_date" required="true"> <label locale="downloads~common.dl_date"/> </date>
and in my controller i set a default value to it like this for example :
$form->setData('dl_date',date("d-m-Y"));
in my form i do
{ctrl_value 'dl_date'}
to check if the value is correctly assign (and that displays the corect value !) and
<p class="field col">{ctrl_label 'dl_date'} {ctrl_control 'dl_date'}</p>
to display the field with the given value
but in this last case ; the value i've assigned ealier in the controller is not used by the field
Change History (2)
comment:1 Changed 12 years ago by laurentj
- Component changed from jelix to jelix:forms
comment:2 Changed 12 years ago by laurentj
- Resolution set to invalid
- Status changed from new to closed
I confirm.
Note: See
TracTickets for help on using
tickets.
There is no still documentation about this new widget, however I think that the format you should use to setup this widget is Y-m-d and not d-m-Y.
So I think this ticket is invalid.