Create a User-Defined Prompt Set for a Template
Before you begin
- Ensure you are working within a new or existing template.
- Ensure that the Data Toolbar is visible. The Data Toolbar can be enabled/disabled by pressing Ctrl+D.
Procedure
- Position the cursor in your document where you wish to insert the User-Defined Prompt field (this is where you want the text to eventually appear on the page).
- Locate and double-click the User Defined template field from the Data Toolbar. The Custom Field Properties window appears.
-
From the Field Type drop-down list, select Prompt.
-
The Custom Field Properties window will now display settings for the custom prompt.
It is with this window that you create a set of custom fields that make up your prompt. For example, your custom prompt might consist of a single question with an associated text field for users to enter their response, or it could be made up of a series of different questions with different user input mechanisms. - Enter a name for your custom prompt set in the Caption field.
-
Add custom field items to your custom prompt set. To do this, click Add The Custom Field Properties window appears again.
Normally you would use this window to add a custom field to your letter template. This time however, you use this window to add a custom field to your prompt set. See User-Defined Fields for more information about creating individual custom fields. Add as many custom fields to your custom prompt set as required. The following field types are available:Field Type Description Character A single line of text. You must also indicate the maximum number of characters this line of text can hold via the associated Max. Length field. Character Multiline Multiple lines of text. Date (Long) The long-date format, as set in Windows' Regional Settings. Options include;
To display a default value (as entered by the user)
To default to the current date
To use the last saved value.
Date (Short) Windows short-date format, as set in Windows' Regional Settings. Options include;
To display a default value (as entered by the user)
To default to the current date
To use the last saved value.
Fixed Note One or more lines of informative text that appears within the prompt set at the time it is called, when you create a new letter. A 'fixed' note only appears on the prompt set itself and is never added to your resulting letter. An example of a fixed note appears in the example following, at Step 13. List A list of text entries that the user can select a single item from. Number A positive number. You must also indicate the maximum number of digits this number can be via the associated Max. Length field. Yes/No Either 'Yes' or 'No' appears within the resulting letter. However, within the prompt set itself, this appears as a check box for you to either tick (for Yes), or leave empty (for No). Prompt A set of one or more of the other field types, combined and displayed in a table within a letter. See User-Defined Prompt Sets for more information. -
(Optional)
- Add a Cancel button to your custom prompt by ticking the associated checkbox on the Custom Field Properties window.
- To ensure that all fields are mandatory, tick the associated checkbox on the Custom Field Properties window.
- (Optional) Re-size the Output Table Column Divider using the associated slider on the Custom Field Properties window. When your custom prompt set is used in a letter, the user's responses to your prompts are displayed in the letter in a table with two columns; column 1 contains the prompt questions and column 2 contains the user's responses. The Output Table Column Divider is the divider between these two columns in the output table. The default setting is 50%. This can be altered manually once the resulting table of data appears in your letter.
-
Click OK to save your custom prompt set settings and add the
custom prompt set to your template.
If you wish to edit this custom prompt set after you have added it to a template, right-click the custom prompt set placeholder and select Properties from the menu that appears. - Remember to save this template
-
When you create a new letter based on this template, you will be prompted to enter data for your User-Defined set of fields, as shown below.
The resulting table of data: