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

Spry validation disabled

Thread began 10/21/2010 10:41 pm by georgevargasa302189 | Last modified 10/25/2010 8:19 pm by Jason Byrnes | 1903 views | 10 replies |

georgevargasa302189

Spry validation disabled

I used HTML editor to modify a contact form produced originally by CSS form builder. The text box originally had a spry validation requiring some text to be entered.

After adding the HTML editor to the text box the validation does not work. Is there a way to restore the validation function?

I have enclosed the file.

Attached Files
contactus.zip
Sign in to reply to this post

Jason ByrnesWebAssist

No spry validation cannot be applied to an html editor field.


you can use server validation on the html editor field though to make it required.

Sign in to reply to this post

georgevargasa302189

I tried that and got the following error message;

"Making this change would require changing code that is locked by a template or a translator. The change will be discarded."

I did this by selecting WA Validation tool Kit > Server Validation.

Sign in to reply to this post

Jason ByrnesWebAssist

The error you are getting is a common one when working with templates in Dreamweaver.


There is no solid fix for the issue, but I have discovered a workaround. See the following thread for details:
showthread.php?t=4509

Sign in to reply to this post

georgevargasa302189

Thank you that made the server validation work.

The main problem now is this would be somewhat frustrating to the user. The form contents are wiped out and there is no indication to the user of what went wrong.

Do you think the spry validation being disabled will be fixed some time in the future?

I did notice HTML editor is part of the new version of CSS form builder, is it functional in that update?

If so is there a grace period since I just purchased both of these products last month?

Sign in to reply to this post

Jason ByrnesWebAssist

Select each form element, in the property inspector, click the lightning bolt ans select the corresponding Validated Entries option.

Sign in to reply to this post

georgevargasa302189

The form elements still come back empty when the Server Verification fails because the text box is left blank.

If I specify a default value if the field is unverified, they only show up if I close my browser before going to the page. Otherwise the field are blank.

Also even if I get the values to work, users may still assume their email was sent if there is no error message shown.

Sign in to reply to this post

georgevargasa302189

I found I could edit the server behaviors which already existed to add the coment field check back in. This at least restores the check to make sure the comment field is not left blank, and keeps the other fields values intact.

The problem is that I cannot add back the 'Validation Show If' which tell the user to enter a comment. If I do, the HTML field is completely eliminated.

Is there some way to simulate the 'Validation Show If' operation for the text box with HTML editor?

Also, is this now fixed on CSS Form Builder 2 which includes the HTML editor?

Sign in to reply to this post

Jason ByrnesWebAssist

there are two things you need here, both are separate.


1) Show the Previous entry when validation fails.

For each form element, select it in design view. In the properties inspector, click the lightning bolt next to Initial Value. From the Dynamic data bindings list, expand the validated entries and select the coresponding item from the list.


2) Show an error message next to failed form elements.

Type the error message, the select it. On the server behaviors panel, click the plus button and select WA Validation Toolkit -> Validation Show If. From the list of validations, select the validation that should trigger the error to show. and click the plus button.

Sign in to reply to this post

georgevargasa302189

Thank you very much!

Sign in to reply to this post
loading

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...