- Create a service field in the Document Definition.
- On the Data Source tab, open the Source list and select Flexible Section Variant ID. This field will display he ID of the variant assigned to a document.
- On the Rules tab, create a new rule of type Database Check.
- In the properties of the rule, specify Data Set as the source. Select he appropriate set of variants from the list.
- Click the Add… button and in the dialog box that opens, create a correspondence check: in Database field specify the name of the variant and in Document field specify the field on the form that must correspond to the name of the variant. Specify correspondence parameters and click OK.
- From the Field where to save record ID list, select the newly created service field. Note: For more about creating and editing rules, see Rule validation.
- Add a control element of type “Button” to the form (Form → Insert Control → Button).
- In the properties of the button, click the Format tab, specify Database Lookup as the type of action and select the newly created rule from the list.
Field extraction training
Enabling operators to change variants
To enable operators to change variants assigned to documents, the administrator must create and configure a service field:
