Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

  1. Create a form using Form Designer. Refer Form Framework for information on creating and configuring forms.
  2. Specify the error message to be displayed in the properties file.
  3. In the form's listener JS file, provide the following code:
Info

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. 


Code Block
languagejs
canvas.env.options.form.errorLblPosition='bottom'; 
	//The default option is 'inline'. That is, the error message displays when the user hovers over the //error icon on the form item. 


Info

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.