context.showErrorMessage
(FintechOS Studio 21.1.6.3 and later)
Displays on screen the error message generated when a file upload fails.
This method is available in the On File Upload Error field that is displayed when customizing field options for a file attribute in a form or form driven flow.
Syntax
Copy
context.displayErrorMessage(): void
Examples
In this example, in the Field Options section of a form, we customize the form field for a file attribute by adding code in the On File Upload Error section. This code implements error management for failed file uploads:
- We log the file upload error message in the console log using the context.errorMsg property.
- We display the file upload error message on screen using the context.showErrorMessage() method.
Copy
console.log(context.errorMsg);
context.showErrorMesage()
