template::form::set_error (public)

 template::form::set_error id element error

Defined in packages/acs-templating/tcl/form-procs.tcl

Set an error on a form element. Can be called from the -on_submit or -after_submit block of an ad_form. Will cause the form to no longer be considered valid, and thus the form will be redisplayed with the error message embedded, provided that 'break' is also called, so any code that redirects away from the form (e.g. in the after_submit block) isn't called either.

Parameters:
id (required)
The ID of the form
element (required)
The element that contains the error.
error (required)
The error message.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-lang/www/admin/edit-localized-message.tcl packages/acs-lang/ www/admin/edit-localized-message.tcl template::form::set_error template::form::set_error packages/acs-lang/www/admin/edit-localized-message.tcl->template::form::set_error packages/acs-subsite/lib/login.tcl packages/acs-subsite/ lib/login.tcl packages/acs-subsite/lib/login.tcl->template::form::set_error packages/acs-templating/www/scripts/xinha/attach-file.tcl packages/acs-templating/ www/scripts/xinha/attach-file.tcl packages/acs-templating/www/scripts/xinha/attach-file.tcl->template::form::set_error packages/acs-templating/www/scripts/xinha/attach-image.tcl packages/acs-templating/ www/scripts/xinha/attach-image.tcl packages/acs-templating/www/scripts/xinha/attach-image.tcl->template::form::set_error packages/acs-templating/www/scripts/xinha/file-selector.tcl packages/acs-templating/ www/scripts/xinha/file-selector.tcl packages/acs-templating/www/scripts/xinha/file-selector.tcl->template::form::set_error template::adp_level template::adp_level (public) template::form::set_error->template::adp_level

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