Validation Toolkit applies unique CSS styling to actual form elements. This advanced technique highlights whether form elements pass or fail validation. For example, when the text field fails validation, users will be alerted by a change in color.
To achieve this, you will learn to use the Validation Show If server behavior provided in Validation Toolkit. However, instead of applying this to an element on the page, a custom CSS class will be applied to the input field when validation fails.
Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.
Sign in to add commentsYour friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.
sbaczanski436733: 11 Years, 6 Months, 1 Week, 20 Hours, 37 Minutes ago
how about .invalid as a class instead of .fail
Team WebAssist: 11 Years, 6 Months, 3 Days, 18 Hours, 50 Minutes ago
We use .fail because in a real scenario, we would be applying this class in multiple places and we're essentially saying that a field is failing validation. It could be "entry required" validation or "password doesn't match" validation or "nice try but that's not your stinkin' credit card" validation. Anyhow, you can name the class anything you want as long as you continue to use that throughout the tutorial. Invalid is another good example because it's pretty generic.
Mysite07430650: 11 Years, 3 Months, 6 Days, 12 Hours, 25 Minutes ago
Excellent tutorial Kate. Well thought through and clearly explained. Thank you.
Kate Ford: 11 Years, 3 Months, 5 Days, 14 Hours, 26 Minutes ago
Hi Mysite07430650, Thank you for your comment. It's always nice to receive feedback. I'm glad the tutorial is helpful.
madahmani: 10 Years, 11 Months, 2 Days, 12 Hours, 30 Minutes ago
Applying this tutorial to a one single text input may be easy to apply but I tried with a whole form with many elements and it does not work.
I tried everything without any luck.
this_is_me: 10 Years, 2 Months, 57 Minutes ago
Excellent Tutorial. First time I could apply server-siede validation to an existing form working. I needed the step to step explanation to understand the procedure.
Kate Ford: 10 Years, 2 Months, 8 Minutes ago
Hi this_is_me. We are so happy to know the tutorial's step-by-step instructions were helpful. Thank you for letting us know.
Team WebAssist: 10 Years, 1 Month, 4 Weeks, 2 Days, 21 Hours, 32 Minutes ago
madahmani, We would need more details to assist you with what is not working. Please click Help in the main menu and we can help you via our technical support forums.