Quote Field Item
Input Field Types
| Name | Description | Type | Example | html |
|---|---|---|---|---|
| text | Text Input Field | Simple | <input type="text" id="[field.identityTag]" value=""/> | |
| bool | Checkbox Input Field | Simple | <input type="checkbox" id="[field.identityTag] value=""/> | |
| date | Date Input Field | Simple (recommend date picker) | <input type="text" id="[field.identityTag]" value=""/> | |
| radio | Radio Input Field | Compound | <label for="[field.identityTag]-1"><input type="radio" id="[field.identityTag]-1" name="[field.identityTag]" value="[field.options.value1]"/>[field.options.text1]</label>
|
|
| select | Dropdown / Select / Combobox | Compound |
<select id="[field.identityTag]"> | |
| header | A section header to seperate question | Simple | Information | <div class="alert alert-info">[field.label]</div> |
| warning | A warning to be display | Simple | Warning | <div class="alert alert-warning><i class="fas fa-exclamation-triangle"></i> [field.label]</div> |
| mead | Selection of Mead & McGrouther code | Complex | ||
| person | A field related to information in the Person section | Complex |
Input Field Validation
| Name | Description | Options |
|---|---|---|
| required | The field is required, and submission should not be allowed until filled in | |
| numeric | The field must contain only digits [0-9] | |
| decimal | The field must contain a maximum number of decimal places | [max] |
| length | The field valuelength must be within (inclusive) of the constraints | [min,max] |
| The field value must be a valid email address | ||
| phone | The field value must be a valid phone number | +27 82 123 4567 | 082 123 4567 | 0821234567 |
| year | The field value must be a 4-digit year value | [max,min] now means this year, values are increments from this year |
| date | The field value must be a valid date in either "dd MMM yyyy" or "yyyy-MM-dd" format |