context.errorMsg
(FintechOS Studio 21.1.6.3 and later)
Returns the error message generated when a file upload fails.
This property 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.errorMsg: string
Return Value
Returns a string containing the error message generated when the file upload fails.
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()
