We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

freeform: want to redirect to different error page

Development and Programming

django6's avatar
django6
124 posts
16 years ago
django6's avatar django6

Is there a way to redirect the user to a different error page or perhaps just give them a red dot next to a field that is incorrect? The current error page is a not so nice looking. I’m not sure if this is a freeform issue or an EE one, but I’ve posted on the FF forum and didn’t hear anything, so I thought I’d ask around here.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

You could always use some Javascript validation such as the fantastic Live Validation javascript which won’t even allow the form to submit if there are errors and will show the fields that have errors directly on the form. That might help a bit maybe?

Admitted if people turn off javascript then you are going to want server-side validation to kick in as you shouldn’t really ever 100% rely on javascript but nowadays most people don’t turn off javascript anyway so might be a nice place to start.

Best wishes,

Mark

       
django6's avatar
django6
124 posts
16 years ago
django6's avatar django6

Mark,

That looks like an excellent solution. I’m wondering what you use with expression engine for creating forms. Do you use freeform or have a better solution? I’d still like to know if there is an easy way to change that existing error page if I don’t want to add javascript.

       
futurestudios's avatar
futurestudios
17 posts
15 years ago
futurestudios's avatar futurestudios

Hi Guys,

Is it possible to validate whether there is already a similar value in a freeform entry using this js/method ?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.