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

Validation Show If Hic-up

Thread began 5/05/2011 3:09 pm by mora398588 | Last modified 5/10/2011 4:42 pm by Jason Byrnes | 1622 views | 7 replies |

mora398588

Validation Show If Hic-up

I just purchased Form Toolkit today.

I am attempting to insert a server validation, as well as a show if behavior to one of my forms. I followed the directions provided on your support page to the best of my ability. However, when I click on the form submit button, the server behavior appears not be showing up.

You should know that I am using Spry validation on the form as well. So most of my form fields are using Spry validation. I am attempting to apply your toolkit validation behavior to only one of my form fields (which is a select box allowing for multiple selections). I am wondering if may be the problem (Spry and Toolkit behaviors integrated into the same form).

Would you take a look at my file (see attached). My request is how do get the show if validation server behavior to work properly?

Thank you!

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

Jason ByrnesWebAssist

the default value of your select list is passing the value -1:
<option value="-1" selected>Select your course(s)...</option>

this is not going to fail required validation.

your default value, should have a blank value:
<option value="" selected>Select your course(s)...</option>


by using -1, a selection is actually being made and passing validation. Use an empty value to fail validation if the default is selected.

Sign in to reply to this post

mora398588

I made the change. This time the validation behavior worked, but the redirect (same page) erased all the form field data. That would be frustrating to any user. Is there a solution to this happening?

Also, the validation error msg did not display red. Would I need to create new CSS for the error message to display a red color?

Sign in to reply to this post

Jason ByrnesWebAssist

select each form element.

In the property inspector, click the lightning bolt next to initial value, in the dynamic data bindings, expand the Validated entries collection and select the item with the corresponding name.

For select lists, you will click the dynamic button And click the lightning bolt next to Select Item Equal To

Yes, you will need to manually style the error message.

Sign in to reply to this post

mora398588

Jason, in my dynamic data bindings, I do not see anything labeled, "Validated entries collection". Are you referring to the form elements in the binding table?

Sign in to reply to this post

Jason ByrnesWebAssist

here is an updated copy of the Configuration/DataSources/PHP_mySQL.WA_Validated_Entries.htm file that should correct the issue.

Please copy into the users configuration folder.

Attached Files
WA_Validated_Entries.htm.zip
Sign in to reply to this post

mora398588

Jason, thank you for the update.

I wanted to share with you about another possible issue. Have you noticed any performance issues with forms that utilize both Dreamweaver's Spry Validation and the Server Validation Show If behaviors through WA Forms Toolkit?

Would you recommend that if any form validation is to be used, use either one exclusively or it does not matter?

Sign in to reply to this post

Jason ByrnesWebAssist

No, there should not be an issue using spry validation and server validation.

If you are going to choose between spry and server side validation, you should always choose server side. Spry validation can be disabled by turning off javascript in the client browser.

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