uidoc.FieldGetText() cannot detect attachments in RTF field -?

Hi everyone!

I have a form, in which, in a QuerySave form, I have a all-fields-filled-check script. It works fine except for RTF fields with attachments.

(I wish to ensure that author attaches a file.)

The code is:

If (Source.FieldGetText(“Attachment”)=“”) Then

Messagebox "Empty field",, "Empty field"

Call Source.GotoField("Attachment")

Continue = False

End If

This code doesn’t work.

Any ideas?

Thanks in advance,

Dmitry.

Subject: uidoc.FieldGetText() cannot detect attachments in RTF field - ?

Because FieldGetText only gets you the text from a field.

You could check for attachments after the document is saved (Notesdocument.hasembedded).

Subject: Re:Re:uidoc.FieldGetText() cannot detect attachments in RTF field - ?

Thanks!

By the way: hasEmbedded works on not-yet-saved docs too :slight_smile: