Salesforce

Form Templates (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Form Templates

The current form layout can be saved to a file as a template using the Create Template option in the Options menu. The default file extension is MFT. The template contains all controls and all control properties except for the following:

  • Control Name

  • Property expressions

  • Data Source properties

  • Help and Prompt Help properties

  • Auto Call Program properties

The above properties will have empty property values when loaded from the template file.

If you load a template into an existing form, the template file will overwrite all the form settings, and all the controls that were on the form will be deleted.

Form Templates are limited to GUI forms. HTML templates are not accepted by the GUI Form Editor.

Saving a form as a template

  1. Open up the form you want to save as a template.

  2. Select Options->Create Template.

  3. When the file dialog box appears, give the file a name. The default extension is .mft.

  4. Click Save.

Using a template form

  1. Go to the form in which you want to add the template

  2. Select Options->Load template.

  3. When the file dialog box appears, select the template you want to use.

  4. Click Open.

Form template functionality is available only for the Report Forms (Class > 0 forms).

Since version: 3.x

The template will be loaded on your form. The controls will all be on the form as in the original form. You will still need to attach them to the variables that exist in this task.

Another good way to standardize your forms is to use form and control models. These not only allow you to build forms that all look alike, it also gives you the ability to change your standards and have all the existing forms and controls change automatically to meet those standards.

Reference
Attachment 
Attachment