[Seaside] DateInput5 in Seaside widget preinitialized value view

Esteban Maringolo emaringolo at gmail.com
Mon Sep 6 18:17:34 UTC 2021


Hi,

The native date input (input type="date"), will take a string value as
input if formatted as yyyy-mm-dd (e.g. '2021-09-06').

html dateInput5
  on: #startDate of: self contract;
  id: 'startDate';
  step: 1;
  title: 'Start Date';
  value: self contrato startDate yyyymmdd;
  required.

Best regards,


Esteban A. Maringolo


On Mon, Sep 6, 2021 at 2:22 PM Oswall Verny Arguedas C. <sistecaq at gmail.com>
wrote:

> Regarding dateInput5 in Seaside.
> How a previously initialized date can be displayed in the form's
> dateInput5 widget.
> I use a pre-initialized date type value that is a property of the object
> to render on the form.
>
> html label
>   for: 'startDate';
>   with: 'Start Date:  '.
> html dateInput5
>   on: #startDate of: self contract;
>   id: 'startDate';
>   step: 1;
>   title: 'Start Date';
>   value: self contrato startDate;
>   required.
>
> Widget don't render date initialized.
> I can't get it to show up.
>
> Thanks,
> Oswall
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20210906/9e527e65/attachment.html>


More information about the seaside mailing list