On Text Field Validating

When it is launched

The script is launched when the control is validating the user editing of a text field, e.g. when trying to choose the value from suggestions or when the control loses focus.

  • If the CanApply.Value property is set to true, the user input will be validated after the script execution.
  • If the CanApply.Value property is set to false, the user editing will be undone.

By default, the value of the CanApply parameter is true.

Parameters

Name Type Access Description
CanApply IBoolean Read/write Specifies whether to save changes
Context ITextEditor Read/write The document field editor

12.04.2024 18:16:02

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.