Color validation in form
Summary: S Benson, also known as S Benson, sought advice on creating a validation for a form requiring user-updatable red text to be removed before submission. George Cheung suggested using a custom validation expression to check for red text by its RGB value and provided an example. S Benson expressed gratitude and planned to test the solution, while Heather Fara inquired about the outcome of the test.
I have written a form with some standard text and some user-updatable text in a single Rich Text field. I have colored the user-updatable text in red to make it easy to see. How can I write a validation to embed in the form to ensure the red text is removed before the form is submitted?
For example:
The purpose of this agreement is document item1, item2, item3 will be used to do certain thing. (I have bolded them here, since I cant show red).
Thanks,
Scott
George Cheung
Under the Custom Validations, in the Expression:
Error Message: "Replace Red Text"
In the example above - the rich text form field is 'purpose', and the "rgb(224, 62, 45)" is the color code for red text used in the default value. This expression is checking to see if red is in the rich text box.
Hope this helps.
S Benson
OP@George Cheung Thanks very much - I will try it this week
Heather Fara
Did it work?
S Benson
OPYes! I made a few minor tweaks, but it was just what I needed. Now, its on to the next adventure