Home →
Using LincDoc 3.1+ →
Field Attributes →
Using Global Fields
9.7. Using Global Fields
Global fields allow an eForm or Document Package administrator to configure a specific group of fields at the same time.
Proceed to one of the following sections below for more information:
About Global Fields
This feature is used by adding a specific suffix to certain field names in your source document (known as a pattern). This pattern is then used by a global field to locate the fields in your form that will be updated, based on the field attributes defined within the global field itself. In short, you can easily apply changes to multiple fields without having to update each field individually.
For example, you could add a pattern to all of the date fields in your source document. Then, a global field could use this pattern to locate the date fields, and push any updated attributes (defined in the global field itself) to each of the individual date fields with minimal effort.
Note: An example of global field usage, used to update specific date fields in a form, is described at the end of this topic.
Creating a Global Field
Global fields are created using the Global Fields dialog box. During the creation process, you both define settings for the global field (including the pattern that it will use to locate the fields it will update) and attributes. These attributes are then "pushed" to the individual fields that are updated by the global field when it is applied.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- Click the add button.
A new entry is added to the global fields list on the left side of the dialog box.
- Click the NEW entry to select it.
Various attributes appear on the right side of the dialog box.
- In the Name text box, change the default NEW entry to a name that describes the group of fields that will be affected by this global field.
This entry will appear in the list on the left side of the dialog box, and is the name of the global field itself.
- In the Pattern text box, specify the pattern that will be used to identify the fields affected by this global field. Remember, all standard form fields that you want affected by this global field need to use this pattern in their field names (within the source document).
- In the Section text box, specify a section into which all affected fields (fields that use the global field's pattern) will be placed. This setting is optional. If you want your fields to remain in their current sections, simply leave this text box blank.
- Edit the field attributes, as desired. These attributes will be used by all fields that match the pattern defined above, when you apply this global field.
For more information on these attributes, see Defining Field Attributes.
- Click the save button.
- Click OK to acknowledge the action.
- Proceed to Applying Global Fields below.
Editing Global Field Settings
You can edit the Name, Pattern, or Section settings of a global field at any time. However, there may be implications, as described in the following procedure.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- From the global fields list, click the global field whose settings you want to edit.
The fields settings and attributes appear on the right side of the dialog box.
- Edit the following attributes, as desired:
- Name. This setting is only used in the global fields list on the left side of the Global Fields dialog box, so you can change it at any time without impacting the affected form fields.
- Pattern. This setting should be changed with care. Unless you have updated all of the affected fields' names in your source document, changing this setting could cause the global field to not work properly.
- Section. This setting can be changed, if you'd like to update the section where all affected fields are stored. The old section, if one was specified, will still be present on the Fields/Sections tab. You can delete it manually, if desired.
- When you are satisfied with the setting changes, click save.
- Click OK to acknowledge the action.
- Apply the global field.
Editing Global Field Attributes
You can edit the attributes of a global field (the attributes that are "pushed" to the affected, individual form fields) at any time.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- From the global fields list, click the global field whose attributes you want to edit.
The fields settings and attributes appear on the right side of the dialog box.
- Edit the field attributes, as desired. Remember, these attributes will be used by all fields that match the pattern defined above, once you apply this global field.
For more information on these attributes, see Defining Field Attributes.
- When you are satisfied with the attribute changes, click save.
- Click OK to acknowledge the action.
- Apply the global field.
Applying Global Fields
After global fields have been created or edited, you can either apply them to all affected fields or only to fields that have been recently added to your eForm or Document Package (since the last time the global field was applied).
Important: Changing the attributes of an existing global field has no effect on any field that was previously updated using that global field. The only time global field settings are applied is when the apply global fields button is used, as described below.
Applying All Global Fields
You can apply global fields to all affected fields (fields that use the pattern defined in the selected global field).
- Verify that you have set all desired global field attributes.
- Open the eForm or Document Package whose fields you want to update.
- Click the Fields/Sections tab.
- On the toolbar at the top of the tab, click the apply global fields button.
The Auto Field Setup dialog box appears.
- Click the all fields option.
- Click apply.
The affected fields are updated, based on the current attributes defined within the global fields themselves.
Applying Only New Global Fields
You can apply global fields only to newly added fields that use the pattern defined in the selected global field. New fields arise when you have an existing eForm or Document Package and its source document is modified, with one or more fields being added.
- Save and upload your source document.
- Verify that you have set all desired global fields attributes.
- Click the Fields/Sections tab.
- On the toolbar at the top of the tab, click the reparse button.
Any new fields added to your source document will appear in the OTHER section on the left side of the Fields/Sections tab.
- On the toolbar at the top of the tab, click the apply global fields button.
The Auto Field Setup dialog box appears.
- Click the new fields option.
- Click apply.
Only the affected new fields are updated, based on the current attributes defined within the global fields themselves.
Exporting and Importing Global Fields
You can import global fields that have been exported from another instance of LincDoc or from a different client ID within the current instance of LincDoc. This option allows you to share global forms easily and efficiently, if needed.
- Open the instance of LincDoc that contains the global fields you want to export.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- On the dialog box's toolbar, click the export button.
An XML file containing all of the defined global fields is created and downloaded to your local system.
By default, this file is named GlobalFields-<your_client_ID>.xml.
Note: The exact method of downloading will vary based on the browser you are using.
- Perform one of the following actions, based on your needs:
- Copy the XML file to a computer running the instance of LincDoc into which you want to import the global fields.
- Change to the client ID into which you want to import the global fields.
- If necessary, start LincDoc.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- On the dialog box's toolbar, click the import button.
The Import Global Fields dialog box appears.
- Click Browse.
- Navigate to the location of the XML file you exported earlier in this procedure.
- Click the XML file to select it, and click Open.
You are returned to the Import Global Fields dialog box, and the selected field is displayed.
- Click Upload.
The imported global fields appear in the global fields list on the left side of the Global Fields dialog box.
- If necessary, edit the imported global fields.
- Click save.
- Click OK to acknowledge the action.
Importing Fields from an eForm or Document Package
You can copy defined fields from an existing eForm or Document Package, adding them to the currently open eForm or Document Package for use as global fields, using the import from Document Package button on the Global Field dialog box's toolbar.
- Verify that the eForm of Document Package into which you want to import the fields is open (appears on the Form Selection drop-down list).
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- On the dialog box's toolbar, click the import from Document Package button.
A list of eForms and Document Packages appears.
- Select the eForm or Document Package that contains the global fields you want to import.
The Select the fields dialog box appears, listing all of the fields in the selected eForm or Document Package.
- Using the check marks on the left side of the dialog box, select the fields you want to import and use as global fields.
- Click select.
The fields you chose appear in the global fields list on the Global Fields dialog box.
- Configure the newly added fields.
Deleting a Global Field
You can delete a global field at any time via the Global Fields dialog box.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- Click the global field that you want to delete. The field is highlighted.
- Click the delete button that appears.
The global field is removed.
- Click save.
- Click OK to acknowledge the action.
Example: Using a Global Field to Update a Form's Date Fields
In this example, the dates fields in a form will have a global field applied to them, allowing for an easy change to a specific field attribute.
- In the source document used in this example, notice that two date fields to use _dt extension (at the end of the field names). This extension, highlighted below, will be used as the pattern for identifying fields affected by a new global field.
- On the LincDoc toolbar, click the admin button, and select global fields from the menu that appears.
The Global Fields dialog box appears.
- Click the add button.
A new entry is added to the global fields list on the left side of the dialog box.
- In the global fields list, click the NEW global field.
The global field's settings and attributes appear on the right side of the dialog box.
- In the Name text box, type all dates to replace the default NEW entry.
- In the Pattern text box, type *_dt to identify the fields that will be affected by this global field.
- In the Section text box, type main_dates. The date fields affected by this global field will be added to this section, which, since it doesn't already exist in this example, will be created on the Fields/Sections tab.
- From the Field type drop-down list, select date.
- From the Required drop-down list, select Always.
When finished, your global field should appear similar to the example below.
- Click the save button.
- Click OK to acknowledge the action.
Based on these settings, whenever this global field (now called all dates) is applied, two fields will be impacted (today_dt and start_dt). First, the date fields will be placed in a new section (called main_dates). Second, the fields Field type attributes will be set to date. Finally, their Required attributes will be set to Always.
You can also adjust these global field settings and attributes at any time, to adjust the behavior of the global field, including any of the following actions:
- Change the Section setting to place the two date fields in a different section on the Fields/Sections tab.
- Adjust the Required setting to Never.
- Change any other listed field attributes (basic or advanced) to alter how the two date fields are affected when the global field is applied.