CMS MADE SIMPLE FORGE

Form Builder

 

[#1583] Display of error messages

avatar
Created By: Kevin Grandon (savagekabbage)
Date Submitted: 2007-06-22 12:26

Assigned To:
Resolution: None
State: Open
Summary:
Display of error messages
Detailed Description:
Instead of outputting error messages in a generic <h4> tag can we output them
like: <div class="error_message">.  Only requires changing one line in
form.class.php.

History

Comments
avatar
Date: 2007-07-02 20:38
Posted By: Jeff Claeson (climberusa)

eve better would be to have the errors display next to their respective inputs.
another idea would be to have it output an ordered list and each list item is a
link to the fields id so as the user clicks on the link it automatically takes
them to the field. Both would require minimal work i imagine.
      
avatar
Date: 2007-07-04 15:32
Posted By: Vincent G. (vinc)

Yes it could be great !! (+1)

Also there is no control of the display of Captcha errors. (not even a <h4>...)

Great job so far !
      
avatar
Date: 2007-07-05 20:01
Posted By: Kevin Grandon (savagekabbage)

It is possible to have the errors display next to the field already using the
FormBuilder templates.  Instead it may be better to have a template that does
this packaged with the FormBuilder.
      
avatar
Date: 2007-07-10 02:21
Posted By: Samuel Goldstein (sjg)

moved into the Form template in the svn version.

You can now display the validation any way you want.

What's more, each field now has its validation error available to it, so you can
render the validation error alongside the field title, or somewhere else nearby.

Due to the way the CMSMS Form API is set up, the links to each field as Jeff
suggested would be really difficult, so I didn't implement that particular
approach.

This'll all be available in the next release, or you can grab the svn version.