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:

  1. required elements must have a not-null value;
  2. values must match the element's declared datatype;
  3. 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 - The identifier of the form containing the element.
element_id - The unique identifier of the element.

Partial Call Graph (max 5 caller/called nodes):
%3 template::element::create template::element::create (public) template::element::validate template::element::validate template::element::create->template::element::validate template::element::get_opts template::element::get_opts (private) template::element::get_opts->template::element::validate _ _ (public) template::element::validate->_ ad_log ad_log (public) template::element::validate->ad_log template::adp_level template::adp_level (public) template::element::validate->template::adp_level template::data::validate template::data::validate (public) template::element::validate->template::data::validate template::element::querygetall template::element::querygetall (public) template::element::validate->template::element::querygetall

Testcases:
No testcase defined.
[ show source ]
Show another procedure: