Hi,
I now have a working date on my form. Looks very nice when there is a date value - date as a string (defaults to today) alongside the calendar widget. Now I need to add another date to the form, and entering a value in this one will be optional. My problem comes when a user selects a date with the widget, and then decides they don't want to enter a date after all. How do they clear it? Thanks in advance Colin -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Good question. Ideally the date widget should provide a "clear"
functionality. I entered a bug to track this new feature: http://forge.objectweb.org/tracker/index.php?func=detail&aid=305200&group_id=168&atid=350207 Missing that, you can very easily add a "Clear" trigger next to it, that does an <xforms:setvalue/> of the field value. That will clear the date. -Erik Colin O'Brien wrote: > Hi, > > I now have a working date on my form. > Looks very nice when there is a date value - date as a string (defaults > to today) alongside the calendar widget. > > Now I need to add another date to the form, and entering a value in this > one will be optional. > My problem comes when a user selects a date with the widget, and then > decides they don't want to enter a date after all. > > How do they clear it? > > Thanks in advance > Colin Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Colin O'Brien
Hi Colin
How did you implement this form? I have implemented the form to a point where I can copy date into the input field form from a selection made on the calendar. I do not like this approach at all. I think it was pretty heavy.However I would like the date format to be in military format - (yymmdd).
|
Free forum by Nabble | Edit this page |