close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Wrong error message in form

Thread began 11/02/2009 1:53 pm by rmleczynski311091 | Last modified 11/05/2009 9:47 pm by Eric Mittman | 2442 views | 7 replies |

rmleczynski311091

Wrong error message in form

I have customized the Login and Confirm preset in Form Builder and it seems to be working. My questions arises because the error messages for the confirm password text box seem to be reversed. If I type in a value that is not the same as the password it gives me the error message that a value is required and if it has no value it says that the passwords do not match. The only thing I did to the preset is delete the email text box. Is this a bug in Form Builder?

Sign in to reply to this post

Eric Mittman

Are these errors happening for you when you submit the form or when you are filling it out? Please post back with the exact steps you are taking to receive these errors so that I can do some testing on this and let you know exactly what it should be doing and if this is a bug in the tool.

Sign in to reply to this post

rmleczynski311091

It is happening during the form being submitted or tabbing out of the confirm textbox. I opened FB and modified the Login and Confirm form by deleting the email line and left the password and confirm lines. I then modified the css portion of the form for my site. That is all that was done.

Sign in to reply to this post

Eric Mittman

I applied CSS Form Builder to a page. The type of form that I applied was the registration. I edited this form and removed the email address field. I then finished and got the form onto my page. I then test the form out by tabbing through the fields and entering values for all but the passwords. When I attempt to submit the form I see errors about the passwords not matching and a value being required.

I'm including a screen shot of the result that I'm getting. Please give it a try like I have done and let me know exactly what the result is you are getting when do it like this.

Sign in to reply to this post

rmleczynski311091

Eric, did you try typing in a password in the password field and then typing in a wrong password in the confirm field? The error message I get when I do that is "A value is required". If I type in a password in the password field and then tab to the Confirm field and tab out of it I get the error message "your password entries do not match". If the field is left blank shouldn't the error message be "a value is required"? This is the problem with the error messages being shown backwards. It is happening in the one you show in your attachment when I try it on my site and also on the Login preset that I was trying to use. It seems that wherever you have the password and confirm text fields it is doing this. I don't understand how the extension puts the error messages into the completed forms, but it seems that the error messages are getting reversed for the confirm field.

Sign in to reply to this post

Eric Mittman

Ok, got it, not sure how I missed that based on you first post. So you are exactly rite, it looks like the error messages were put in the wrong places. On your page if you are in split view select the confirm input then look in the code, just after this input you will find this code:

html:
<span class="confirmRequiredMsg">Your password entries
do not match.</span><span class="confirmInvalidMsg">A
value is required.</span>




Just looking at these it should be obvious that they are switched around, you can just reverse this html to look like this to get it to work:

html:
<span class="confirmRequiredMsg">A value is required.</span><span class="confirmInvalidMsg">Your password entries do not match.</span>



When I do this I get the result that you would expect from this interaction. Sorry for not seeing it the first time through. I have also logged a bug for this, hopefully it will be fixed in the next release that is created.

Sign in to reply to this post

rmleczynski311091

Thank you.

Sign in to reply to this post

Eric Mittman

Your welcome. Let us know if you encounter any other issues.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...