Showing Rich Text on Web as Read Only while rest of Document in Edit Mode

Because of the problems with Rich Text on the Web, I would like to be able to open a document in Edit mode but keep the Rich text field as R/O. I tried having two SubForms, one for the Web and one for the Notes Client with the Rich Text field defined as Computed on the Web. I tried the Web Display options of HTML and Best Fit for OS. Yet each time when I modified another field on the document, the Rich Text field was modified when it was saved back to Notes losing images, doc links etc. Is there a way of displaying Rich Text, changing other fields in a document and keeping Notes Save from changing the RT field?

Subject: Showing Rich Text on Web as Read Only while rest of Document in Edit Mode

There are probably many ways to avoid that a field is touched by a Form on the Web. The first things which would come to my mind are:

  1. Make a Form/SubForm for the Web which does not have the RichText field at all, but create a fake field, which can be just plain text field. Now make a WebQueryOpen agent, which reads the real RichText field from the document and puts the content to the fake field. It can look like (“Body” is the real RichText field, which must not be on the Form, “fake” is the plain text field, which is visible on the Form):

Sub Initialize

Dim session As New notessession

Set doc=session.documentcontext

Dim fake As New notesrichtextitem(doc,"fake")

Set body=doc.getfirstitem("Body")

fake.AppendRTItem Body

End Sub

  1. You could also create a , to show the document inside itself, but have a 2nd Form in the

Subject: RE: Showing Rich Text on Web as Read Only while rest of Document in Edit Mode

Thanks Mika that worked perfectly.