Skip to main content
Version: 2.x (upcoming)

Template field types

When you add a question or an input to an asset template, you choose its input type. The editor groups the types as Text and numbers, Choices and dates, and Linked data and files, plus Preset field. Several input types are stored as one of two field types, depending on a setting; the stored type is what appears in the XML export and the API.

Input typeStored field typeBest for
Free textfreetextShort, one-line answers. The URL and Email validations require a valid web address or email address.
Text areatextareaLonger answers in paragraphs.
Rich textrichTextareaAnswers that need formatting (bold, lists, links). The editor opens in plain-text mode; the Format button reveals the formatting toolbar and Plain Text hides it again.
NumbernumberQuantities, counts, amounts, or any answer that must be a number.
Yes / NobooleanDecisionYes/No questions, answered with two buttons.
Single choiceradiobox, or select when Show as a dropdown is onOne answer from predefined options.
Multiple choiceselect with multiple selectionSeveral answers from predefined options.
Tick boxcheckBoxA standalone opt-in or opt-out checkbox.
DatedatePickerDates, such as a start or end date.
ReferencereferenceTypesValues from a configured Reference Type, such as funders, licenses, or ORCID records. Authors can pick more than one allows several.
Plan or asset in OpenCDMPinternalEntitiesPlans or internalEntitiesDescriptions, chosen by Link toLinking to plans or assets that already exist in the platform. Authors can link more than one allows several.
TagstagsFree keywords.
Dataset identifierdatasetIdentifier, or validation when Check that the identifier resolves is onDOIs, handles, and other persistent identifiers. With the check on, authors are told when an identifier cannot be found.
File uploaduploadAttaching supporting documents or data files.
Preset fieldsystemReusing a core asset property (title, description, or tags) as a form field. See Preset fields.

A Default value can be set on free text, text area, rich text, number, yes/no, single choice, multiple choice, tick box, and date inputs. The same types can drive conditional questions.

File upload settings​

An input of type File upload has these settings:

SettingDescription
Max sizeThe maximum file size authors can upload, in MB, up to the limit of the installation (required).
Allowed file typesThe file types authors can upload, grouped as documents, spreadsheets, presentations, images, and data (required).
Other media type…Add a type that is not in the list, with the name authors see and its media type (for example application/x-netcdf).

Preset fields​

A preset field maps an input to one of an asset's built-in properties instead of storing a custom answer. This lets you place a core asset property directly inside the template's structure, for example the asset title within a specific section.

Asset templates offer the following preset fields:

Preset fieldWhat it capturesRequired in the template
TitleThe title (label) of the assetYes. Authors must always answer it.
DescriptionThe free-text summary of the assetNo
TagsThe tags applied to the assetNo
info

A preset field shares its value with the corresponding built-in asset property: editing it updates the asset's title, description, or tags.

warning

Preset fields behave differently from other inputs:

  • Each preset field can appear only once in a template, and a template cannot be finalized without the Title preset field.
  • The Title preset field is always required; the setting is locked.
  • A question that holds a preset field cannot be repeated, and you cannot add more inputs to it.
  • Preset fields cannot be the target of a conditional question: they are always visible.