Pls help me on richtext field

Hi, i am facing a problem… pls help me with a solution… am more than appreciate thank you…

i have a richtext field, and that field is mandatory… when attachment is put in the field… it cannot be submit… cos only when text is entered in the field then can submit… i check the field by doing this…

If uidoc.FieldGetText(“attachment”) = “” Then

Msgbox "Please add your attachment", 64, "Error"

Call uidoc.GotoField("attachment")

checkFields = 1

Exit Function

End If

this ‘attachment’ field is a rich test field…

pls help me with a solution… thank you very much :slight_smile:

Subject: pls help me on richtext field…

The problem is that FiledGetText will do what it says: it gets TEXT entered into the RTF. If you have only an attachment, then it will always return “”.

Can you safely save the document from your script? If so, you could perhaps use the NotesRichTextItem.EmbeddedObjects property?

Adrian