Make the localityname field not mandatory

Hello,

Is it possible to turn localityname in a non mandatory field? Indeed, there are various cases where it makes sense that this field remains empty but as it can’t be, we have to create internal rule such as put “n/a” when it’s not available. Leaving it blank would be much easier.

Thanks,
Alexis

Hello @alexis.beck,

localityName is a required and indexed field on the Locality table in the schema. Required fields in the Specify schema cannot be changed in Schema Config and must have an entry on each Locality record. This field is the identifier for the table and is the primary field for searching in the Locality query combo box. If it is common and crucial that this field is empty for your collection’s practices, you can add a default value for this field in the form definition. To fill the localityName field with “n/a” on new records by default, the form definition would be:

<cell type="label" labelfor="localityName"/>
<cell type="field" id="localityName" name="localityName" uitype="text" colspan="14" default="n/a"/>
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.