How to display customized message on ‘Current Error’ of Scan Form
Question / Problem:
Messages on ‘Current Error’ of Scan Form are automatically displayed when Folder, Document, or Field have some problems. However, there is no Form Action or API method to display messages we would like to display. In some cases, we would like to display customized messages on this panel.
Answer / Solution:
Use JQuery script to display your customized message on ‘Current Error’.
-
On Scan Form, Press F12 key to open dev tool to check the element name of ‘Current Error’ panel:
[Note]: Element names can be changed by KTA versions. You have to confirm the name for each version.
2. Create a JavaScript action and write JQuery code like below to set any error message.
e.g.
$('#textarea-1043-inputEl').val('Some Error Message');
3. After releasing the form, the message is displayed on ‘Current Error’:
Applies to:
Product | Version |
---|---|
KTA | 7.6.0 |