ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Showing form errors "inline"

July 17, 2007 6:59am

Subscribe [2]
  • #1 / Jul 17, 2007 6:59am

    kingdoz

    45 posts

    At the moment, if someone submits a form incorrectly on the frontend using EE it takes me to a seperate page with a list of the errors. I was hoping that I could customize this page so that it looks like the rest of the site. Unfortunately, that template file runs all of the user mesages (which also screws up the fact that I want to show a custom page for all redirecting messages, which looks it can’t be done)

    So, two questions really:

    1) How do I show errors inline
    2) How do I create multiple designs for the user message templates?

  • #2 / Jul 17, 2007 7:25am

    Sue Crocker

    26054 posts

    kingscotty,

    Eacy Contact Form Validation

    Try this solution first. I use it to validate some 3rd party forms using Solspace’s Freeform offering.

  • #3 / Jul 17, 2007 7:46am

    kingdoz

    45 posts

    not quite what im looking for, but interesting either way!

    I want to show EE’s PHP errors at the top of the page, rather than in a new page

  • #4 / Jul 17, 2007 7:49am

    Sue Crocker

    26054 posts

    What this does is force the user to fix their errors before going on. It’s inline validation. So if you require a particular field, they can’t submit until the field is filled in.

  • #5 / Jul 17, 2007 8:11am

    kingdoz

    45 posts

    yup, but the user may not have javascript enabled…

  • #6 / Jul 17, 2007 11:30am

    Robin Sowell

    13255 posts

    You can’t by default- though you might be able to workaround it via an iframe?  Flipping out designs for the user message template is also problematic as php and standard EE tags won’t be parsed in the specialty templates.

    I think you’re going to need a hack, extension or some creative ajax/frames going on to achieve what you want.  I could switch this over to ‘How to’ for some brainstorming if you like.  But ‘out of the box’, the user message template just isn’t quite designed for it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases