A Rich Text tip worth repeating.
Table cell hide-whens in Notes/Domino applications have always had some
problems associated with them. I've been working on a web application that
contains 23 rich text fields, all embedded in table cells along with fields
of other types. The hide-when formulas for the rich text fields and their
associated text display fields are simple - the rich text fields are to
be hidden in read mode, while the associated text fields are computed for
display and hidden in edit mode. What could possibly go wrong?
Well
to begin with I was seeing double. Both fields displayed in edit mode and
both fields displayed in read mode. I tried recreating a few of the fields
thinking maybe they were corrupt - no change. I tried creating the rich
text field in a different table cell from the one in which the associated
display field was living - no change. Through several iterations
of this I noticed that once in a while the duplication went away. However,
there seemed to be no rhyme or reason as to why. I looked at other web
applications I have created in the past but none of the forms contained
the plethora of rich text fields this one does, and they were never contained
in a table cell.
Then while searching Notes Net for some information I came across a posting
that talked about putting a space before a rich text field to make the
hide-when formula kick in. The posting was a good 2 or 3 years old so I
thought surely that the bug this was meant to work around would have been
fixed already - apparently not. Upon close inspection it turned out that
a couple of the fields I had fiddled with in an effort to fix the problem
had a space in front of them. These were the ones that were inexplicably
working as expected. I then went and put a space before each of remaining
20-odd rich text fields and viola! The hide-whens now work as I expect
them to.





-