Creating and Modifying Fields and Templates

New Features: Laserfiche 12 introduces new ways of working with templates and fields. For more information, see Enhanced Metadata Management with Laserfiche 12 eLearning course in Aspire.

Before users can apply fields and templates to entries, the definitions for those fields and templates must be created. Laserfiche provides you with two starting templates: General, which contains general information about documents, and Email, which contains information specific to imported emails. You can modify these templates to better suit your needs, and you can add additional templates and fields specific to your repository.

Before creating a new template or field, you should first consider its purpose: what type of information it will store, in what format will it be stored, and how will that information be used in the future. This will help you determine how to configure the field, and will ensure that you are capturing the correct information without storing extraneous information. See Best Practices for Fields and Templates for more information.

Using the Template Designer

To begin creating a template and associated fields using the template designer, open Repository Administration in the Web Client and select Metadata, then select Templates. Select the Add button and specify ta name and optional description and/or color for the template. (The color will display alongside documents and folders with that template assigned for easy identification.) Click OK to create the template and open the designer.

Note: Users must have the Manage Templates and Fields privilege to use the template designer. Users without this privilege, but with the necessary field and template access rights to modify field and template definitions can do so in field and template properties.

Adding Fields

The template designer provides a simple drag-and-drop interface for creating a template. On the left, you can choose Existing Fields to select a field that has already been created in the repository, or Create Fields to create a new field. When creating a new field, you will first need to select a type for the field; see Field Types, below, for more information.

Drag the field into the central designer pane. You can arrange and rearrange the fields however you like by dragging and dropping, including placing fields side-by-side or using formatting elements. You can also use the Duplicate button to create a copy of the field, or the Delete button to remove the field from the template.

The field's properties will be displayed in the left pane. Fields have the following available properties and options:

  • Field name: The name of the field. This name is unique in the repository and will apply to the field regardless of what template it is part of or whether it is part of a template at all.

  • Field label (optional): The label that will be displayed for the field in this template; the field label is not shared with other templates that contain the same filed. Field labels can be used to provide contextual information about the field specific to the template.
  • Description: A brief description of the field. This will be displayed to other administrators when working with the template definition.

  • Default value: The default value for the field. You can set this as a static value, or as a token.

  • Allow multiple values: Determines whether the field is a multi-value field. See Multi-Value Fields, below, for more information.

  • Required: Determines whether the field is required. Fields can be set as required in two ways: required for all templates and required for this template. For more information, see Required Fields, below.

  • Indexed: Determines how the search engine will handle searches for this field, which in turn determines what options are available for searching on field values. See Indexing Fields in the Laserfiche System Administration Guide for details.

  • Character limit (text and list fields only): The maximum size of the value that can be stored in the field.

  • Allow multiple lines (text fields only): Determines whether the text box will display as a multi-line box by default or will only expand as it is populated.

  • Format (date and number fields only: You can customize the way that Laserfiche displays date, time and number field values. This customizing can be done on a field-by-field basis. For example, you might choose to display a number field as currency (so that the value "345.98" will be displayed as "$345.98"). See Custom Field Display Formats for more information.

  • Constraints (text and number fields only): Text and number fields can be constrained to a certain format or range of values to ensure consistency in how a value is specified across your organization. For example, you might want to ensure that all phone numbers are input in the format 123-456-7890. Similarly, you might have a number field to store four-digit invoice numbers, and want to ensure that all values in that field fall between 1000 and 9999. See Custom Field Constraints for more information.

  • Options (list fields only): The values that can be selected for a list field (checkboxes, drop-down lists, and radio buttons). See List Field Types, below, for more information.

Note: If a field has already been added to a template or applied to an entry, it cannot be modified using the template designer. You can modify these fields in field and template properties instead.

Adding Formatting Elements

In addition to being able to drag and drop fields into whatever configuration works best for your information, you can add additional formatting elements to make the template clearer and easier to use.

  • Table: The table element allows you to display multi-value fields in a table to make them easy to read. To do so, drag the Table formatting element into your template, and then drag the multi-value fields into it side-by-side. You can also set a Group name for the table.

  • Note: Checkboxes and radio buttons will automatically be displayed as drop-down lists when added to a table. In addition, fields that have not been configured as multi-value fields cannot be added to tables.

  • Section: Section breaks split templates into collapsible parts. You can set a name for each section to provide context to the fields within that section.

  • Static text: Static text will display as written to users populating the template. You can use static text to provide additional information or instructions for filling the template.

 

Field Rules

Field rules allow you to selectively display or hide fields depending on values set in other fields. For example, invoices over a certain amount might require additional information for approval. You could create a field rule that displays fields for that additional information if the total price value greater than the specified amount.

To create a field rule in the template designer, select Rules in the right pane. Specify whether to Show or Hide the target field or fields based on the rule. Select a field to show or hide; you can use the Add new field button to specify multiple fields.

Once you have specified one or more target fields, you can set the rules that determine when those fields are displayed based on one or more criterion fields. Specify whether to apply the rule When any of the following is true, When all of the following is true, or Always. You can then specify one or more criterion fields. and the values that will cause the rule to take effect.

Multiple field rules are evaluated top-down, with rules lower in the list taking precedence over rules higher in the list in case of conflicts.

Field rules can be used with individual fields, sections, tables, and static text.

Field Types

A field's type determines what kind of information can be stored in that field.  For instance, a text field can contain any combination of characters, but a number field can only contain numbers. In addition, the field type determines how the information in the field will be sorted when displayed in columns.  A field's type is determined when the field is created.

Laserfiche supports the following field types:

  • Text: The Text type is the most permissive type of field. Any character can be entered into it. By default, the only limitation Text fields have is the width or number of characters that can be assigned to it. The width is set when the field is created.
  • List: A List field type allows you to select a value from a predefined list. The values available from this list and the order in which they appear are configured when the field is created. List fields can be displayed as checkboxes, drop-downs, or radio buttons; see List Field Types, below, for more information.
  • Number: Only number values, including decimals and negative numbers, can be type into a Number field. A number value must fall within the following range: -9,999,999,999,999.999 and 9,999,999,999,999.999. Number fields support up to five places after a decimal point (e.g., 0.00001).
  • Date: Only date values can be specified for a Date field type. A date value must be formatted using short date format (e.g., 06/05/2014).
  • Date/Time: A Date/Time field allows you to specify date/time values. A date/time value must be formatted using short date format followed by the time (e.g., 06/05/2014  06:00:00 PM).

List Field Types

 A List field type allows you to select a value from a predefined list. List fields can be displayed in three ways: as a checkbox, as a drop-down, or as a radio button. They are configured in the same way, but display differently to make them easier for users to set. For example, if a list field contains a large number of possible values, it should be configured as a drop-down to save space on a template, whereas a list field with a short number of possible values from which the user should pick one would be better displayed as a radio button.

List fields have the following properties:

  • Values: The list of values from which a user can choose.

  • Default value (optional): The default value of the list field that will be pre-selected in the template. If you do not set a default value, the default will be blank.

  • Sort option: Determines whether to sort the list of values in Ascending or Descending order. If you choose None, the list will be sorted in the same order as set in the field's properties.

  • Add "Other" choice: Determines whether users can specify an option not on your pre-defined list. You can specify a name for this option.

  • Display as dropdown: Allows you to display field values as a drop-down list even if originally configured as a radio button or checkbox.

Multi-Value Fields

Fields may be configured to accept multiple values. For example, if a report may have multiple authors, the Author field may be configured to allow you to type more than one author name. Any value in a multi-value field can be searched on, regardless of its position in the field. Fields are marked as multi-value fields in Repository Administration. You can mark a field as multi-value when you create it, or you can modify an existing field to allow it to accept multiple values.

After the first value is typed into a multi-value field, a new line will appear below it, allowing you to type a second value for the field, and so on. To remove a value from a field, click the remove button to the right of the field value.

Multi-Value Field Groups

Multi-value field groups are groups of multi-value fields that are related in some way. When multi-value fields are collected into a multi-value field group, the first value for each field will be displayed together, and then the second value for each field will be displayed together, and so on. If a multi-value field is not part of a multi-value field group, all the values for the first field will be displayed together, and then all the values for the second field will be displayed together, and so on.

For example, you might store invoices in Laserfiche and include information about those invoices in the fields. An invoice might have multiple items on it, each of which has information that needs to be stored in the metadata: the item's name, product ID, quantity, and price. If you are not using multi-value field groups, each field will be listed separately, making it difficult to tell which product corresponds to which ID, quantity, and price.

However, if you are using multi-value field groups, multi-value fields will be arranged so that the first values of each member of the group are displayed together, making it easier to interpret the results.

You can define multiple multi-value field groups for a single template. Multi-value field groups can collect any fields in the template as long as they are multi-value fields, including dynamic fields. Multi-value field groups are specific to a particular template. If the fields also exist in another template, they will not automatically be collected as a multi-value field group in that other template.

Creating a Multi-Value Field Group

  1. Open repository management by selecting the app picker and then selecting Repository Administration.
  2. On the left, under Metadata, select Templates.
  3. Select the template to which you want to add a multi-value field group.
  4. On the Template Properties page, select the Multi-Value Field Groups tab.
  5. All multi-value fields in this template will be listed. In the Group option, click and select the group to which you want to assign the field. If you do not want to add a particular multi-value field to any group, leave the group set to No group.

    Example: An organization's Invoices template contains seven multi-value fields: Product Name, Product ID, Price, Quantity, Customer Name, Customer Email Address, and Approved By. The administrator wants to group Product Name, Product ID, Price, and Quantity into one group named Product Information, Customer Name and Customer Email Address into a second group named Customer Contacts, and leave Approved By separate from the other groups. The administrator could do so by assigning the first four fields to Group 1, the second two fields to Group 2, and leaving the final field set to No group.

  6. Optional: In the Group Name option, click and type a name for the multi-value field group. This name will be displayed to users in the client.
  7. Click Save to save your changes.

Dynamic Fields

A dynamic field is a type of field in which the value of one field controls the values that a user can choose in another field. In a dynamic field, selecting a value for a parent field determines what value are available in the child fields. See Dynamic Fields for more information.

Field and Template Languages

You can configure an alternate language for the name of a field or template. When a user whose locale settings match that language views the template or field, they will see its name in the alternate language. If an alternate name has not been configured for a particular language, or the language isn't supported, the primary name (as configured in the General tab of the template or field's properties) will be displayed. For example, if a repository is primarily used by people who speak English, but some who speak Spanish or Arabic, the primary name could be set in English, with alternate names for Spanish and Arabic. If a repository is primarily used by people who speak French, but some who speak English or Chinese, the primary name could be set in French, with alternate names for Spanish and Arabic.

Alternate field and template names must be set manually for each field and template. Only the field or template name will be affected; field values are not affected by this setting.

Setting Alternate Field or Template Names

  1. Open repository management by selecting the app picker and then selecting Repository Administration.
  2. On the left, under Metadata, select Templates or Fields.
  3. Select the field or template to which you want to add an alternate name and select the Language tab.
  4. Under Language, select the language for which you want to configure an alternate name.
  5. Under Alternate Name, type the translation of the name.
  6. To add additional languages, select Add Language and then repeat steps 4-5.
  7. When you have configured all desired languages, click Save to save your changes.

Languages into which the client has been localized also support alternate language names. The supported languages are Arabic, Chinese (Traditional), Chinese (Simplified), English, French, Italian, Portuguese (Brazilian), and Spanish. Thai is also supported in the web client only.

Required Fields

A required field can never be blank. Whenever it is applied as part of a template, it must be filled in before you can save the document. There are two types of required fields:

  • Required for all templates: The field is required on all documents to which it has been applied, regardless of which template or templates they belong to.

  • Required for this template: The field is required when applied as part of the specified template, but can belong to other templates where it is not applied.

Required fields are marked with a red asterisk.

Field and Template Security

Administrators with the Manage Templates and Fields privilege can control who can see individual fields and templates on document. For more information, see Template and Field Access Rights.

Deleting a Field or Template Definition

To delete a field or template definition, select Metadata on the Repository Administration page and then select Fields or Template. Select the field or template you want to remove, and click the Delete button. This will permanently remove the field or template. The field or template will also be removed from all documents and folders that contained it.

Duplicating a Field or Template Definition

To duplicate a field or template definition in the web client, select the definition in the Fields section of the Repository Administration page and press the copy button. The field or template definition will be duplicated, and can be opened and modified.