You might have a dataset where one of the columns can only be one of a few items. For example, you might have three sampling locations (Farm A, Farm B, Farm C) and you want to make sure the names entered are always the same ('Farm A', and not 'A', or 'FarmA' or 'FarmZ' by mistake).
The way you limit the choices to only a few is via paired overlays: 'Entry Code' and language specific tab 'Entry'.
The reason these overlays are paired is because the OCA schema lets users create different language drop-down menus (via 'Entry') that all record the same entry code 'Entry Code' for the data.
To limit data input to only a select number of choices use the following:
- Attribute Type: use [text] or [numeric] for the Attribute Type (for single selection, for multiple selection use array[text] or array[numeric])
- Entry Code: write short names or numbers coding for the items in the list (separated by the pipe | symbol)
- In each language tab for Entry give more human-readable labels matching each Entry Code to a language specific label
Example 1: to limit gender entry to one of three choices
- Attribute Type: [text]
- Entry codes: M|F|X
- In the language tab for Entry: “M:Male|F:Female|X:Other” for English and “M:Masculin|F:Féminin|X:Autre” for French
Example 2: to limit bee types to only two choices, with a code (501 or 527) for the actual data, but french or english names available for the data entry.
- Attribute Type: [Numeric]
- Entry codes: 501|527
- In the language tab for Entry: "501:Carniolan honey bee|527:Russian honey bee" for English and "501:Abeille de Carniole|527:Abeille russe" for French