Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To auto-populate today's date in a field, add a class of "form-autodate" to the containing input field.  This will place an American shorthand date in most fields (M/D/YYYY) but will place a timestamp-style date (YYYY-MM-DD) in inputs with type=date (to conform to the HTML 5 spec for this type, since display is overridden by the browser).  This will only occur on enabled (not disabled) form fields, i.e., the currently active form section.  If the field should not be editable by the user, the "form-autodate-readonly" class will date the field and make it readonly.

This will not update if the user's local data date changes after the field is populated (i.e., the clock strikes midnight or the user opens an old draft/returned form).

Automatically Resize Fields to Fit the Full Available Width

...