logo

New Response

« Return to the main article

You are replying to:

  1. I love the way you check for invalid characters and the "field" keyword in your code. There is one minor thing to correct if you don't want the user to use the field keyword at all: at the moment you perform a case sensitive test for "field", so the user could enter "Field" or "FIELD" (Domino doesn't care). To make your test case sensitive just change the line declaring the first regular expression: var regExp1 = /\bfield\b/i (added the i at the end for ignore case). That's it.

    Thank's again for the great tip!!!

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: