The tc:input tag retrieves text that is entered by the user who invokes the Document Generator. The user will enter text within fields that you will create by defining them in the header section of the document template. The information retrieved by the tc:input tag is not data within any TeamConnect records.
When using the tc:input tag in the content section of the document template, you reference a corresponding tc:input tag in the header section of the document template where you define the input page.
You can nest tc:input where needed in the content section. It is not affected by the outer tags where it is nested.
The following table indicates how to use tc:input in the content section to retrieve the selection made by the user in the input page.
Usage of tc:input
Tag attribute |
Attribute value |
Description |
select |
"InputName" or "InputForm.InputName" |
Type the unique name for the text field in which the user will enter information in an input page. The name that you type here in the content section of the document template must correspond to an input field that you define in the header. If the field is defined as one of multiple fields in one input page, then the InputName must reflect which input page contains the field, as shown. |
Example: |
<tc:input select="UserInitials" /> |
In the example given, UserInitials is the input field chosen. When the document is generated, the text that the user entered in this field in the input page will be inserted in place of this tag.
The input field is defined in the document template's header section. For details about defining input pages, see Defining Pages for User Input. See also the example letter in the Document Generator Template Page Two image for examples of using tc:input.