Sp7 Data Entry: Auto-insert current Catalogued Date

Hi @pverley,

Yes! This can be achieved by adding default="today" to the cell, like so:

<cell type="field" id="12" name="catalogedDate" uitype="text" uifieldformatter="Date" default="today"/>

There are other options available for the default. This is not exclusive to the catalogedDate field, and can be used for any field using a date format.

Relative

today + 2 days
today + 14 weeks
today + 1 month
today - 1 year
today + 3000 seconds

Absolute (format should follow what is in remote refs)

01/01/2022
2022-01-02
05/2022

This information is contained in Editing Forms in Specify 7, along with many other helpful explanations of forms in Specify 7. Hope this answers your question!

1 Like