Custom attribute types¶
Every custom attribute has a type, which you choose when you create it. The type decides what the field looks like on a form and what people can enter in it. For example, a string is a text box, a boolean is a tick box and a date has a calendar.
You create every custom attribute in the same 3 steps.
Step 1: Fill in the main settings, which are the same for every type. See Add a custom attribute.
Step 2: Choose the type and fill in its fields. This page covers each of the 13 types, in the order of the Type list. For each type, it shows the field people see, then how to set it up.
Step 3: Link the custom attribute to the records it belongs on, then save. See Link the custom attribute and save.
List¶
A list of elements to choose from. Each element has a name, an identifier and a value, and the custom attribute sets which of these people see.
People choose one element from a list with a search box. When the custom attribute allows more than one, the elements are tick boxes.
To set up a list:
- Choose List in the Type list. A new custom attribute opens with it chosen.
- Choose a Display Format As Enum. It sets what people see for each element: its name, its identifier, its value, or a mix. Name And Identifier, for example, shows "English : english".
- Tick Allow Multiple Link to let people choose more than one element.
- Expand Elements. For each element, enter a Name and an Identifier, and a Value if you need one.
- Drag the move icon to put the elements in the order people should see.
- Link the custom attribute and save.
The list's own fields are Display Format As Enum and Allow Multiple Link.
Each row of Elements is one element. The remove icon takes an element out, unless a record already uses it.
With Allow Multiple Link ticked, people see the elements as tick boxes.
Boolean¶
A tick box, for a yes or no answer. The caption appears beside the box.
A boolean has no fields of its own. Choose Boolean in the Type list, then link the custom attribute and save. If you make it mandatory, people must tick the box before they can save.
String¶
A single-line text field. It can limit the number of characters, and it can check what's entered against a pattern called a regular expression. Most metadata fields are strings.
A regular expression is a sequence of characters that defines a pattern. For more, see Regular-Expressions.info.
To set up a string:
- Choose String in the Type list.
- Enter a Max Length to limit the number of characters.
- Enter a Reg Expression to check what's entered against a pattern.
- Link the custom attribute and save.
Max Length and Reg Expression are both optional.
Selection¶
A list of options to choose one from, with a search box. It's simpler than a list: each option is only its text.
To set up a selection:
- Choose Selection in the Type list.
- In Elements, type each option on its own line.
- Link the custom attribute and save.
Selection with other¶
A selection with Other as its last option, for an answer that isn't in the list.
When someone chooses Other, a text field opens under the list for their own answer.
Set it up as you would a selection. Choose Selection with other in the Type list and type the options in Elements. Insights adds Other to the end of the list for you.
Memo¶
A larger field for free text. It comes in 2 forms.
The plain form is a text box.
The rich text form has a toolbar for formatting. It can open with default text and can have a word limit. With a limit, the field shows the limit above the text and the words left below it. Text that's over the limit can't be saved.
To set up a memo:
- Choose Memo in the Type list.
- For rich text, tick Use Rich Text Editor. Leave it clear for plain text.
- Enter a Default Value if the field should open with text in it, such as a prompt.
- Enter a Word Limit to cap the number of words. Leave it empty for no limit.
- Link the custom attribute and save.
Default Value and Word Limit appear when you tick Use Rich Text Editor.
Integer¶
A number field that accepts whole numbers only. It can have a lowest and a highest value, and both are allowed. A number outside them shows a message under the field.
In this example the limits are 2 and 5.
To set up an integer:
- Choose Integer in the Type list.
- Enter a Min Value, a Max Value or both.
- Link the custom attribute and save.
Float¶
A number field that accepts whole numbers and decimals. It can have a lowest and a highest value, and both are allowed. It can also round what's entered to a set number of decimal places.
To set up a float:
- Choose Float in the Type list.
- Enter a Min Value, a Max Value or both.
- In Round to Decimal Places, enter the number of decimal places to round to.
- Link the custom attribute and save.
All 3 fields are optional.
Date¶
A date field. People type a date, or select the calendar icon and choose one.
A date has no fields of its own. Choose Date in the Type list, then link the custom attribute and save.
Image¶
An upload field for one image. The custom attribute can set the size the image is shown at, its alternative text and the largest file size allowed.
People select Select file... and choose a .png, .jpg, .jpeg or .gif file.
After the upload, the image replaces the placeholder, and the file's name shows under the button.
To set up an image:
- Choose Image in the Type list.
- Enter a Width (pixels), a Height (pixels) or both, to set the size the image is shown at.
- Enter Alt Text for people who can't see the image.
- Enter a Max File Size (KB) to stop larger files being uploaded.
- Link the custom attribute and save.
All 4 fields are optional. Entering both a width and a height distorts an image that has a different shape.
Selection from system entity¶
A list of records from your site, with a search box. The custom attribute sets which kind: groups, organisations, org units or difficulty levels. A list of groups can be limited to the group types you choose.
To set up a selection from system entity:
- Choose Selection from system entity in the Type list.
- Choose the Entity Type: Group, Organisation, Org Unit or Difficulty Level.
- For Group, choose Associated Group Types to list only the groups of those types. Leave it empty to list every group.
- Link the custom attribute and save.
Associated Group Types shows when Entity Type is Group.
Custom view¶
A button that opens a custom page in a window. If the page has a form, what the person enters there is saved with the record. The button shows the custom attribute's Button Text, or View when it has none.
The custom page must exist before you create the custom attribute. A Janison developer usually builds it, so contact the Janison customer services team to arrange one.
To set up a custom view:
- Choose Custom View in the Type list.
- Choose the Custom Page.
- Enter the Button Text.
- Link the custom attribute and save.
Date time¶
A field for a date and a time, with 2 icons. The calendar icon opens the same calendar as a date field. The clock icon opens a list of times.
A date time has no fields of its own. Choose Date Time in the Type list, then link the custom attribute and save.
Link the custom attribute and save¶
This is step 3, and it's the same for every type. It puts the field on the records it belongs to.
- Expand Linked Objects.
- In the empty row, choose the kind of record in Object and enter a Caption.
- Set the row's other options.
- Repeat for each kind of record the field belongs on.
- Select Save.
Each row has these parts:
- Object is the kind of record the field appears on.
- Caption is the label people see beside the field.
- Hint Text is help for the person filling in the field. It shows when they hover over the hint icon beside the field.
- Visibility is Always Shown or Not Shown When Empty. Not Shown When Empty hides the field on a record's page until it has a value.
- Mandatory means the field must be filled in.
- Read Only lets people fill in the field when they create the record, and stops changes after the first save.
- Inactive hides the field on that kind of record.
- The remove icon takes out a row you haven't saved yet.
Once you save, a row's Object can't be changed and the row can't be removed. Tick Inactive to stop using it.
Settings¶
Each type's options are set on the custom attribute itself, at Settings > Custom Attributes. All 13 types are always in the Type list.
Roles (Settings > Roles) — sets which roles can add and change custom attributes. A role can also be allowed to change Read Only fields after the first save.



























