I would like to evaluate to content of a Rich Text Field, and based on the evaluation of the field set the value of another field.
In my scenario I want to require the user to attach a document to a form. I have already built a "user friendly" button to allow them to attach the document and set a status flag. However, I want to ensure that they actually attach the document by evaluating the content of the field (RTF). If the value is null I want to populate a status field to reference status A; if a document is present in the RTF I want to populate the status field to status B.
I currently have it set-up so that when they use the "attach button" the status us automatically changed to status B. The problem that I have is there is no validation that there is actually an attachment present. (A few users have figured out that you can depress the "attach button" and then cancel the action instead of attaching the document. I have the field and some status flags populated when they execute the "attach button".)
Ideas on how to validate that there is actually something in the RTF?