Can Rich Text Field Hide?

My situation is that in the design mode, the rich text “Sample” field do not exisit. My code is to create a dynamice rich text field “Sample” and insert an attachment in the field. and copy the field to desinated document.

where “Sample” is dynamic rich text field with =1…unlimited

When I open the desinated document, there is an attachment icons at the bottom. Can this rich text field be hidded.

Subject: Can Rich Text Field Hide?

Hi,

You need to know one thing, in fact, attachment are not in RTF but Notes/Domino creates a “$File” field for each attachment (look that in properties a document > “Field” tab).

To hide your attachments, on you form, create a “$V2AttachmentOptions” (Notes reserved name) computer for display text field, value can be :

“0” = attachments hidden

or

“1” = attachments visible

also, in this field, you can use a formula for display or not your attachment, e.g.:

@if(@IsDocBeingEdited; “1”; “0”)

HTH

Thierry

Subject: RE: Can Rich Text Field Hide?

Thanks for your suggestion, but it do not work and it seems that all attachments will hide, I just want the attahment in dynamic RT field hide.

Subject: RE: Can Rich Text Field Hide?

The only really effective way to hide just the documents in that rich text field is to put the field inside a collapsed section and put the hide formula on the section, not on the rich text. You can then force the section open and set the title to not display. That works pretty well.

Subject: RE: Can Rich Text Field Hide?

This method cannot be used. As richtext field is dyanamic created by code. No pre-defined field in design mode

Subject: RE: Can Rich Text Field Hide?

You aren’t really asking about hiding a rich text field, you are asking about hiding an attachment. Attachments aren’t “in” rich text fields – they are referenced by rich text fields. The attachment is still present on the document, and will display as a “V2-style attachment” when the field that references the attachment is not displayed. That is, the attachment will show up below a horizontal line at the bottom of the document. That display can be controlled by a special field called V2AttachmentOptions – search the forum for more information on how to use the field.

Subject: RE: Can Rich Text Field Hide?

I has set “V2AttachmentOptions” or “v2attachmentoptions” as computed for display with value “0”. But it do not work

Subject: RE: Can Rich Text Field Hide?

The field’s name is $V2AttachmentOptions.

Subject: RE: Can Rich Text Field Hide?

Try both $V2AttachmentOptions or $v2attachmentoptions and set to “0”, still not work at client

Subject: Can Rich Text Field Hide?

You can use hide-when on a rich-text field so long as it isn’t the first thing on the line. Put a space in front of the RT field and it will hide.

Subject: RE: Can Rich Text Field Hide?

Did you bother to read the other responses before posting?