Displaying Error Messages below the Form Items
Currently, framework displays the error message when the user hovers over the error icon on the form item. Canvas now provides you an option to display error messages below the form items. You can choose either of these options at a time.
To display error messages below the form items, perform the following steps:
- Create a form using Form Designer. Refer Accessing Form Designer for information on creating and configuring forms.
- Specify the error message to be displayed in the properties file.
- In the form's listener JS file, provide the following code:
This code can be used in any listener file, not necessarily form's listener file. However, once this code is implemented, it will reflect globally at the application level.Â
canvas.env.options.form.errorLblPosition ='bottom'; /* The default option is 'inline', which means the error message * displays when the user hovers over the error icon on the form item. */
To view the form in your end application, you must create a view and map the form to it. Then map the form view to the app and the app to a workspace.