Help with rich text fields

Hello,

I created a submit action button with the formula below. I have a rich text field called RequestDesrp. Before submitting I do check if the field is blank, if field is not blank then submit. My problems is that if I enter a word in the field RequestDesrp a my prompt message will appear. Is there something wrong with my formula…

@If(

RequestDescrp = “” ; @Prompt([Ok]; userError ; " Request Description field can not be blank" );

@Do(

@Command([FileSave]);

@MailSend(SendTo;“”; “”; SubjectText; “” ; Body; [IncludeDoclink]);

@Prompt([Ok]; title; "Service Request # " + @Text(ticket) + " has been submitted ");

@Command([FileCloseWindow])

))

Subject: help with rich text fields

The document needs to be saved before you can access rt fields. Try this:

@If(@Command([FileSave]);

@Do(

@MailSend(SendTo;“”; “”; SubjectText; “” ; “RequestDescrp”; [IncludeDoclink]);

@Prompt([Ok]; title; "Service Request # " + @Text(ticket) + " has been submitted ");

@Command([FileCloseWindow])

) ; “” )

Note: You may want to change Body in the @Mailsend to RequestDescrp. It must also be in quotes.

To check the RT field is not blank create a new hidden editable field ‘checkrt’ and use its validation event to check the rt field is not blank. The above code will not work if there is a field validation on the form.