Form Validation

1 reply · opened Dec 26, 2023

NnaliagaDec 26, 2023

Hello,

In earlier editions of Canvas, form validation features such as verifying a correctly formatted email address or displaying a custom error message when a form element was left blank were standard.

I'm struggling to locate these details for version 7. Could you direct me on how to integrate form validation using Canvas's CSS and JavaScript?

Could you provide a simple example? For instance, displaying an error message stating "Email is required" when the email input field is left empty.

SSemicolon WebSTAFFDec 28, 2023

Hello,

The Form Validation has not been changed with Canvas 7 in any way. You can simply add the .show-error-msg Class to the input Tag to display the Error Messages. Example:
[ch_pre]
Email *

[/ch_pre]

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard