Hi I have a field non mandatory field for which there is validation performed. I want to show the validation message to user when a incorrect value is entered during verify.
I am able to show the message only if I add Setisoverridable(false). If I don't use setisoverridable or Setisoverridable(true) then validation message gets saved to XML file but does not show message to user. I just get to see a message "Validation failed.."
Can someone help?
Thank You
Answer by CraigHalliday (410) | Jan 17, 2018 at 07:54 PM
Do you mean the error message in the status bar at the bottom of the panel, or the popup message box? If you mean the popup messagebox and you have specified an error message using AddToErrorMessage or similar action, then the message should be displayed whether the field is overridable or not if you use "Submit" button/menu item/hotkey. If you use the "Run Validation" button you will only see the "Validation Failed" messagebox.
I have validation message set from custom action. I set 2 variables "ErrorMEssage" and MESSAGE variable with error message.When I set SetIsOverridable(False) popup message shows the error message set using custom action ,if it is set to SetIsOverridable(True) then I just get error message saying "Validation failed,Override to continue..."
Answer by RickWilson (6949) | Jan 22, 2018 at 06:04 PM
Datacap has a number of different clients that handle Verify, and the behavior is different for different clients. What specifically are you using to run Verify?
We are using Datacap Navigator to verify of documents
Answer by RickWilson (6949) | Jan 23, 2018 at 05:53 PM
The MESSAGE value for the field is displayed above the image when the field has the focus. For the Override and Continue window, it only displays a page level validation failure. To have it display more detail, you must load the ErrorMessage page variable.
I have StartBatchPanel with few non mandatory fields but need to show messages if data not entered and allow user to continue. In this case I am setting MESSAGE and ErrorMessage variable at Batch level as well as Field level from .net custom action. But I am setting SetIsOverridable(True), then I don't get the error message set to the variable instead I just get default message.
(this is same case in verify also).Both the case I am using Datacap Navigator.
Answer by RickWilson (6949) | Jan 24, 2018 at 03:33 PM
The Start Batch panel is a totally different animal than the Verify panel, and the behavior is more limited. I don't know specifically how that might be accomplished in a Start Batch panel.