Forum

Thread tagged as: Question, Forms

Form Error Message

Hi All

im looking into the form validation for perch forms

So far im using

<perch:error for="all" type="general">
    <div class="alert error">
        <p>Sorry, something went wrong and the form was not sent. Please contact the office for help.</p>
    </div>
</perch:error>

the error is displayed on my iPad chrome but not windows all i see on windows is the required popup

is this because HTML5 required works before the perch validation

and because Apple dont use the HTML5 required in their browsers it ignores the required and uses the perch validation ?

Anthony Elleray

Anthony Elleray 2 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, HTML validation runs in the browser, and the server side validation runs on the server.

But in chrome i cant get the Server Validation to work and error messages to pop up all i can do is make them required which just displays the chrome required message

the server validation only works on apple devices where required is ignored

is there a way to make the same messages appear on windows

Rachel Andrew

Rachel Andrew 394 points
Perch Support

No - the browser validation will override it. That's just how it works. It is more convenient for the user as they don't have to wait for a page reload to see an error.

Ah ok :)

Thanks :)