Form Builder
Importing and Exporting Template Sets
We will soon be working on a new Shared Resource module / service to allow easy sharing of assorted Form Tools data: form configurations, Option Lists and Form Builder template sets. But until that is completed, the only way to import and export your Template Set data is manually, as described below.
Exporting your Template Set
If you want to copy one of your Template Sets to another Form Tools installation, you need to export it. Here's how it works.
- Log into Form Tools and go to your Modules page. There, select the Form Builder. The page that appears will list all of your Template Sets.
- Mouse-over the "edit" icon for the Template Set you want to export (but don't click it). You should see the URL appear in your browser status bar. Make a note of the number for the template set ID (the X): ?page=info&set_id=X
- In the URL of the current page, add the following query string and click <enter>: ?export=X (where X is the Template Set ID that you spotted in the previous step).
- After you click enter, you’ll see some generated PHP appear inside a full-page textarea. Copy the generated PHP and save the file as your_template_name.php. You've exported your Template Set!
Importing a Template Set
- With your FTP client, upload your template set PHP file to the /modules/form_builder/share folder.
- Log into Form Tools and go to your Modules page. There, select the Form Builder. The page that appears will list all of your Template Sets.
- In the URL of the current page, add the following query string and click <enter>: ?import=your_template_set_filename.php (replace the "your_template_set_filename.php" with the actual name of your file).
- Click <enter> in the browser toolbar to load the page and import your Template Set.