Form Template Fields¶
Learn about the field types available when creating HTML form templates for infoRouter.
Supported Field Types¶
| Field Type | HTML Element | Description |
|---|---|---|
| Text Input | <input type="text"> |
Single-line text entry |
| Text Area | <textarea> |
Multi-line text entry |
| Dropdown | <select> |
Selection from predefined options |
| Checkbox | <input type="checkbox"> |
Yes/No selections |
| Hidden | <input type="hidden"> |
Hidden values |
Not Supported
Radio buttons are not supported. Use dropdown lists (<select>) instead.
Field Naming Requirements¶
| Requirement | Details |
|---|---|
| Unique names | Each field must have a unique name attribute |
| No special characters | Avoid special characters in names |
| :material-case-sensitive: Case sensitive | Field names are case-sensitive |
Example Field Syntax¶
Text Input¶
Text Area¶
Dropdown List¶
<select name="Priority">
<option value="Low">Low</option>
<option value="Medium">Medium</option>
<option value="High">High</option>
</select>
Checkbox¶
Field Attributes¶
| Attribute | Purpose |
|---|---|
name |
Field identifier (required) |
value |
Default or selected value |
size |
Display width for text inputs |
maxlength |
Maximum character limit |
rows, cols |
Dimensions for text areas |
Best Practices¶
Form Design Tips
- Use descriptive field names that indicate content
- Keep field names consistent across templates
- Test all fields before uploading templates
- Review built-in templates for examples