This topic shows how to create a Form Template and install it to be used for other Projects and users.
Form Templates are useful for creating a familiar UI across multiple Projects.
Using consistent layouts for user forms ensures an organized and professional image that customers recognize and find user-friendly.
A Form Template has the file extension of .drivefort
Follow the steps below to create a Form Template.
With the Project containing the Form to be exported open in DriveWorks Administrator:
Multiple Forms can be selected by holding the Ctrl key while selecting.
A Form can also be exported from the Form Navigation Task.
Once the template has been installed, the Title will be displayed as the Template name in the Template list, of the Load Template dialog.
To select all, right click on a Constant and choose Select All.
Variables will be displayed in Categories (if used), categories can be expanded or collapsed from the right click menu.
To select all, right click on a Constant and choose Select All.
Browse to the Source Location of the additional content, once selected all folders and files will be displayed.
A default image is included with the template created above.
Images can be included in the index.html file by encoding them to base64.
Use a Web Service such as Base64 Image to convert an image to base64.
Once you have the base64 code of the image:
Rename the file extension from .drivefort to .zip
Open the index.html file in an editor (Notepad for example).
The line <p>Use <a href="https://www.base64-image.de/">base64</a> to display an image.</p> is for reference only, and can be removed.
<body> <h1>Form Template Title</h1> <p>Form Template Description</p> <p>Use <a href="https://www.base64-image.de/">base64</a> to display an image.</p> <img src="INSERT BASE64 HERE" /> </body>
Ensure the quotes around the base64 code are included.
The name of this file is important for the next step.
This could be empty, depending on the selections made when creating the template.
This contains the index.html file
Select all items, right click and select Send To > Compressed (zipped) folder.
If a template is not displaying in DriveWorks after being installed, check that the installer or version of DriveWorks is the one currently being used, as templates are version specific.
A template file will not display if there are errors within its data.
users selected.
To uninstall a Form Template please follow the steps below:
The selected Form Template will no longer appear in the list of available templates when following the steps to Load Template (restart of DriveWorks maybe required).