Question data types and renderers
The data types a catalog question can have, the renderers each one allows and how each behaves on the form.
This page lists the values of a question’s Datatype field and the renderers each data type allows. Use it to choose the type and look of a question while you configure it under Administration → Catalog → Questions.
Data types
The data type decides what the requester can enter and which other fields the question form shows. The renderer, set on the question’s Advanced tab, changes how the answer is shown. An empty Renderer uses the default.
| Data type | Key | Default renderer | Other renderers | Behaviour |
|---|---|---|---|---|
| Acknowledgement | acknowledgement |
Switch | Checkbox | A box the requester ticks to agree. When mandatory, it must be ticked before submission. |
| Boolean | boolean |
Switch | Checkbox | A true or false answer. |
| Choice | choice |
Choice | Radio button, Multichoice | One answer from the question’s Available values. Multichoice lets the requester pick several. |
| Date | date |
Calendar | Calendar range | A date from a calendar picker. |
| Date and time | date_time |
Date and time | Calendar, Calendar range, Date and time range | A date and a time. |
| Decimal | decimal |
Decimal, Text | Accounting, Rating, Rating (number), Percentage | A number with decimals, checked as a number. |
| HTML | html |
HTML | Rich text, useful for text pasted from other systems. | |
| Integer | integer |
Text | Accounting, Rating, Rating (number), Percentage | A whole number, checked as a number. |
| Money | money |
Accounting | An amount shown in the user’s currency. | |
| Multiple reference | many_to_many |
Reference to many | Related list, Attachment | Several records from the Reference table. |
| Reference | reference |
Reference to one | Attachment | One record from the Reference table. |
| String | string |
Text | Text area, Text with link, Mention text, Time, Colorpicker, Icon selector | One line of text. |
| Text | text |
Text area | HTML, Code editor | Several lines of text without formatting. |
| Multiple records | multi_record |
A table of rows. Each row answers the questions of the question set named on the question. |
The renderer lists come from the platform’s renderer definitions (JavaScriptFieldRenderer in branch-1.11.0), which list the renderers each field type accepts. Renderers meant for configuration forms, such as Cron, Condition and Angular component, are left out.
Multiple records transform modes
A Multiple records question collects rows. Transform mode decides what happens to them when the request is generated.
| Transform mode | Key | Default renderer | Other renderers | Behaviour |
|---|---|---|---|---|
| Create records | create_records |
Each row is submitted as its own catalog form and creates a record in the question set’s Table. This is the default when the field is empty. | ||
| Script | script |
The question’s Transform script runs once with all the rows. See Catalog scripting. | ||
| Collect only | none |
The rows stay as answers. No record is created. |
A failing row records its error and does not stop the submission. A Multiple records question cannot be a member of a question set, because it takes its columns from one.
Data type details
Acknowledgement

Boolean

Choice
The Available values field holds the choices. Use Radio button to show every choice at once.


Date and Date and time
Both work with a validation script, for example to refuse a date in the past. Default from function offers relative dates. They are Yesterday, Today and Tomorrow, and the last, this and next week, month and quarter. They also include the last and next 30, 60 and 90 days, and the last and next 3, 6, 9 and 12 months.


Decimal and Integer
Accounting shows the number as an accounting figure, with negative numbers marked. Percentage shows it as a percentage. Rating asks for a star rating. Rating (number) asks for a numeric rating.




HTML

Money

Reference and Multiple reference
Both pick records from the Reference table. A common use is choosing approvers. Add a reference filter to limit the records offered. See Filter the records a reference question offers.



String and Text

