How to hide rtf when there is no text or attachment

i have a rich text field which i want to hide when there is no text or when there is no attachment.i use @abstract function of the rtf to check if there is some text in rtf.

how can i check if there is an attachment in the rich text field.

Subject: how to hide rtf when there is no text or attachment

Try @Attachments

Subject: RE: how to hide rtf when there is no text or attachment

@attachments works for the whole documenti want to check for that particular rtf

Subject: RE: how to hide rtf when there is no text or attachment

There’s no way using a formula to tell whether there are attachments in a particular field. You could do it with the rich text classes in LotusScript.Please read this: IBM - Unexpected Behavior With Hidden Notes Rich Text Fields so that you know why not to use hide formulas on your rich text fields.

Subject: RE: how to hide rtf when there is no text or attachment

Thank you all