is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 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:


in my foo.form.xml i define a date

<date ref="dl_date" required="true">
	<label locale="downloads~common.dl_date"/>

and in my controller i set a default value to it like this for example :


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 13 years ago by laurentj

  • Component changed from jelix to jelix:forms

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.

comment:2 Changed 13 years ago by laurentj

  • Resolution set to invalid
  • Status changed from new to closed

I confirm.

Note: See TracTickets for help on using tickets.