I need to access the contents of an RTF in both edit and read mode in a browser. However, in read mode on the web, the field content is dumped as text and no HTML field is produced. For other field types, a hidden field is produced so the value is still easily accesible. Is there any way to force Domino to do this for an RTF?
Subject: No field for RTF on web in read mode?
You can put pass-through HTML above and below the field, set to hide-when editing like this:
<input type=“text” value="
FIELD
">
But you’d need to take care that the rich-text doesn’t close the value attribute. You might be better off putting it in a DIV, or using a web-queryopen to make the text safe for use in a field.
Subject: RE: No field for RTF on web in read mode?
Thanks. I thought of doing that, but it feels like a hack. So does adding a web query open agent just for this.
In addition, it alls becomes more complicated when the RTF contains XML used for dynamic fields. If you try to store it in a DIV, you have problems with the browser escaping the data. If you try to process the XML in a web query open, where do you put the result? You need further messing around on the front end to make it work.
I just ended up using a regular text field instead, but of course this puts a real limit on the amount of data you can store.