Adding Fields

This page covers the field form, the Fields tab, editing choice options, changing a field's type, and what happens to existing values when you rename, delete, or change things.

Creating a Field

Editor (Admin) members can add fields. Open a data model's Fields tab (how to open it) and click Add Field. The form has these sections: - Basic Information: the Display Label and the Field Type. - Field Display: text that helps people fill in the form (see Descriptions and Hints, the next section). - Options, for Multiple Choice and Media Slider fields. - Validation Rules (Validation Rules). - Display Rules (Display Rules). - Access Restriction (Roles and Permissions). There is no separate name field. The Display Label, up to 32 characters, is shown on the form and, as its help text says, "Will also be used as column headings in tables and exports." Cnidarity derives an internal name from the label for storage; you don't see or edit it. There are 11 types. Field Types Reference describes each one and which to use for what you record. The tier limits fields per project: 30 on Free, 300 on Researcher, and 500 on Team. At the limit, Add Field opens a "Field Limit Reached" notice instead of the form.

Descriptions and Hints

The Field Display section has five optional texts. Each one has a Show in form: switch, so you can store the text without showing it. On the record form they appear in different places: - Placeholder Text: inside the empty input. - Short Description or Question: above the input. Useful for phrasing the field as a question, such as "Was the sample preserved on site?" - Field Description: below the input. - Field Hint: behind a ? icon next to the label, as a tooltip. It can include an image. - Long Description: in an information box with the field. The Display Label has its own Show in form: switch too. A specific description reduces entry errors. Instead of "Depth," write "Maximum depth of the water body in meters, measured at the deepest point during the survey."

Organizing Your Fields

The Fields tab lists everything that appears on the data model's record form, in form order: fields, field groups, and relationships. Each field row shows its label, its type, its Field Description, a Readonly badge if it's restricted, and an icon if it has a display rule. The type appears as a short stored name rather than the name in the Field Type dropdown: text (Short Text), textarea (Long Text), number (Number), choice (Multiple Choice), yes_no (Yes/No), date (Date/Time), image (Image), media_slider (Media Slider), email (Email), url (URL), and 3d_model (3D Model). The icons on the right of a row have tooltips when you hover over them: - Reorder: drag a row. The new order is the order on the record form. - Group: the Move to Group icon (three horizontal lines) puts the field in a field group. It appears once the data model has at least one group. - Duplicate: click the Duplicate Field icon and confirm with Duplicate. The copy gets the original label plus " (Copy)", for example "Water Temperature (Copy)". It has the same type, options, validation rules, display rule, hint, and access restriction, and starts with no values. - Edit: the pencil icon (Edit Field) opens the field's edit page. - Record labels: the tag icon (Configure Record Labels) left of Add Field sets how records are named (Record Labels).
attribute-index-pageThe Fields tab listing fields, a field group, and a relationship in form order, each with a drag handle

Rows on the Fields tab appear in record-form order. Drag a row to move it.

Field Settings

Click the pencil icon on a field's row to open its edit page. It has the same sections as the create form, and Update Field saves changes. Renaming a field. Change the Display Label and click Update Field. Every stored value stays with the field. The internal name is derived again from the new label, and the records table and new exports use the new label as the column heading, so a script that reads columns by the old heading needs updating. Changing rules on existing data. Changes to validation and display rules can affect values that are already saved: - Tightening a validation rule on a field with existing values shows how many values no longer pass. For every rule except Required, you choose Delete these values or Keep values as-is. - Tightening Decimal Precision rounds existing values. - When a display rule hides a field, saving a record deletes the value it had stored for that field. Validation Rules and Display Rules cover the details. Deleting a field. Choose Delete Field on the edit page and confirm. Every value stored for that field, on every record, is permanently deleted, along with its options. Deleting doesn't check whether display rules, conditional validation, saved datasets (Data Pipelines), or charts refer to the field, so review those first. There is no archive or undo.

Editing Choice Options

On a Multiple Choice field, the options list on the edit page lets you add (Add Option), rename, reorder (drag), archive, and delete options. Renaming an option that records use. Cnidarity asks what to do with existing records: - Update all records: every record with the old value gets the new one. - Keep (archive & create new): the old option is archived and records keep it; the new name becomes a new option. - Replace with another option: records with the old value are switched to an option you pick. Renaming an option that no record uses just renames it. Removing an option that records use. Choose one: - Retain (archive option): records keep the value. The option is hidden from the form for new entries and edits. - Replace (permanently delete): records are switched to another option, then the option is deleted. - Clear (permanently delete): the value is removed from those records, then the option is deleted. Confirm with Update values & remove option. Archived options can be restored with Unarchive option.
choice-option-editorThe options list on a Multiple Choice field with the rename dialog open, offering Update all records, Keep (archive & create new), and Replace with another option

Renaming an option that records already use asks how to handle those records.

Changing a Field Type

To change a type, pick a new Field Type on the edit page. If the field has no values yet, any change is allowed. If it has values, Cnidarity shows "Checking type compatibility..." and then one of three results: - "All values are compatible with this type change." Save with Update Field. Every value is kept. - A warning that names how many values need attention, for example "3 of 120 values are not numeric." Choose how to handle them, then save. - A message that the change isn't possible, for example "Media types cannot be converted to or from non-media types." The new type can't be saved. Changes allowed while values exist: - To Short Text or Long Text, from any type except Image, Media Slider, and 3D Model. Multiple selections are joined into one text value with Keep and convert values, for example "Forest, Wetland." From Long Text to Short Text, values too long for Short Text can only be removed with Delete incompatible values. From Multiple Choice, the options list is removed and each record keeps its option's text. From Yes/No, values become the text 1 and 0. - To Number, Date/Time, Email, or URL, from Short Text or Long Text only. Values that aren't a number, a date, an email address, or a web address can only be removed, with Delete incompatible values. For example, a Depth value of "approx 3m" can't become a Number. To keep it, leave the type unchanged or edit those records first. - To Yes/No, from Short Text or Long Text with no more than two different values. Under "Assign each value to a label:", click each value to set it to True or False. - To Multiple Choice, from Short Text or Long Text with up to 50 different values, each of which becomes an option; or from Media Slider, which keeps the options and removes their images. - To Media Slider, from Multiple Choice. - Single Selection to Multiple Selections keeps every value. Multiple Selections to Single Selection (or to Media Slider) asks for Keep first selection or Delete multi-selection values when records have more than one selection. Every other change is refused while values exist. That includes any change between Image, Media Slider, and 3D Model, any change from those three to another type (except Media Slider to Multiple Choice), and changes such as Number to Date/Time or Yes/No to Number.
attribute-type-change-previewThe field edit page after picking a new Field Type, showing the compatibility result and the choices for values that cannot convert

When some values can't convert, you pick what happens to them before saving.