Creating global fields
To make a field a global field, you set the field ID to a value within a reserved range. The following types of fields can be global fields:
- Character
- Currency
- Date
- Date/Time
- Decimal
- Diary
- Integer
- Real
- Selection (drop-down list, radio button, or check box)
- Time
- View (window-scoped global fields only)
You cannot create default values for global fields. The values in global fields begin as NULL until active links initialize them or users enter information into them. The values in global fields are not affected if users select Edit > Clear All or Edit > Set to Defaults.
In forms viewed in a browser, global fields are implemented as encoded values in cookies, which have a 4 kilobyte limitation. (With other cookie data, you can estimate that 3,500 bytes can be stored.) Global values are checked and fields are updated when a window receives focus.
For more information about display-only fields, see the description of Entry Mode under Field-Properties.
To create a regular global field
- Add one of the valid global field types to a form.
- Select the field.
- In the Properties tab, set the field's database ID to a value from 1000000 through 1999999.
See ID. - Copy the global field to multiple forms.
Make sure that each copy of the global field uses the same field ID number.
To create a window-scoped global field
- Add one of the valid global field types to a form.
- Select the field.
- In the Properties tab, set the field's database ID to a value from 3000000 through 3999999.
For more information, see the description of ID in Field-Properties.