This tip describes three quick methods for validating a rich text field in Lotus Notes.
The first method validates a text field in which any text (including a single space character) is an acceptable input.
Add required field validators for every textbox and add a validation summary contol.
We don’t want to invalidate the input if the user removes all text.
They may need a moment to think, but the invalidated state sets off an unnecessary alarm.
Also, there's a large variety of j Query validation plugins that would helpful.
by Christopher Heng, Many websites, like thesitewizard.com, have a feedback form of some sort so that visitors can make comments to the webmasters.
how to achieve this by using a single javasript method.This would apply an error css class to highlight your required fields and display an appropriate message to the user.With a little work you could easily turn this into a j Query helper method that you could reuse in all sorts of situations.In the second method, the rich text field must contain at least one non-space character (in other words, an input consisting entirely of one or more spaces is not allowed).This check also uses the Querysave event of the form: Sub Querysave(Source As Notesuidocument, Continue As Variant) Dim rtitem As Notes Rich Text Item Set doc = Source. Get First Item( "rtfield" ) Dim text As String text$ = Source.