template::element::validate (private)
template::element::validate form_id element_id
Defined in packages/acs-templating/tcl/element-procs.tcl
Validates element values according to 3 criteria:
- required elements must have a not-null value;
- values must match the element's declared datatype;
- values must pass all special validation filters specified with the -validate option when the element was created.
If validation fails for any reason, one or more messages are added to the error list for the form, causing the submission to be invalidated and returned to the user for correction.
- Parameters:
- form_id (required)
- The identifier of the form containing the element.
- element_id (required)
- The unique identifier of the element.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.