Templates

Templates simplify the process of submitting new records by populating fields automatically.

To use a template, populate the most-used fields for a specific table, save it as a template, and then make the template accessible to your users. Users can apply the template to new records on that table, or define scripts that apply the template.

Create templates for the forms that you use frequently, such as incident, problem, and change. There is no limit to the number of templates that you can create or access. Having many templates for each form makes the templates more complex to manage.

You can apply ACL rules to template creation. The user creating the template must satisfy the save_as_template ACL for any field modified by the template.

Automatically applied templates

You can make a template that automatically applies to new, user-created records on a specific table. To create this kind of template, set the template name to match the name of the table to which the template applies.

For example, imagine you want to apply a template automatically when a user creates a record on the Windows Server [cmdb_ci_win_server] table. Set the Name field to cmdb_ci_win_server and the Table field to Windows Server [cmdb_ci_win_server] on the Template form.

Automatic templates are always global. They do not honor the User and Group fields on the Template form. Automatic templates do not apply to records created by the system, such as those records generated by business rules, UI actions, or workflows.