volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Validation Summary in Forms

What is the best way to add a validation summary to Forms? Is there som build in way? I want to display something like 

"You have 2 errors in the form
*Name is required
*Email is requried"

above the form.

Thanks for any help!

#261133
Aug 26, 2021 8:05

Thanks for this case.

#263406
Sep 20, 2021 12:20

I came across this recently. I threw together a quick script that builds a Validation Summary and adds it to the Form__Status section at the top of the form. It's not form specific or controlled via the Form itself, but it meets the needs I initially had.

I wrote up a brief blog with the script here: https://beendaved.blogspot.com/2021/11/validation-summary-for-optimizely-forms.html

#266230
Edited, Nov 04, 2021 15:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.