KozmoK
Active member
I have a template that is a xen date field. As it is now, if I try to submit the form it barks at me that it needs a positive value.
I commented it out, because its not allowing 0 (empty) when saving. If I comment it out, it saves.
What I would like is the field to be allowed blank, zero value.
Optimally, I would like the field to be a text field with no date picker - and have a button/link with optionally datepicker for that field if the user wants it.
Thanks for your guys help!
Koz
PHP:
<xen:comment>
<dl class="ctrlUnit">
<dt><label for="ctrl_host_rtudate">{xen:phrase host_rtudate}:</label></dt>
<dd><input type="date" name="host_rtudate" class="textCtrl" value="{xen:if $record.host_entry_id, {xen:date $record.host_rtudate, picker}, {xen:date $now, picker}}" /></dd>
</dl>
</xen:comment>
I commented it out, because its not allowing 0 (empty) when saving. If I comment it out, it saves.
What I would like is the field to be allowed blank, zero value.
Optimally, I would like the field to be a text field with no date picker - and have a button/link with optionally datepicker for that field if the user wants it.
Thanks for your guys help!
Koz