template::element::set_error (public)
template::element::set_error form_id element_id message
Defined in packages/acs-templating/tcl/element-procs.tcl
Manually set an error message for an element. This may be used to implement validation filters that involve more than one form element ("Sorry, blue is not available for the model you selected, please choose another color.")
- Parameters:
- form_id (required)
- The identifier of the form containing the element.
- element_id (required)
- The unique identifier of the element with which the error message should be associated in the form template.
- message (required)
- The text of the error message.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- template_widget_file
Source code: set level [template::adp_level] upvar #$level $form_id:error formerror # set the message set formerror($element_id) $messageXQL Not present: Generic, PostgreSQL, Oracle