I have very big problem :). I have database on web. There is possible to create new document. Form has fields: text and rich text. The problem is I can’t set the same font in text field and in rich text field. How can I do this ?
Subject: FIELD on web
Hi Bobb,
You could use CSS. If you put the following code in the “HTML Head Content” of your form then the fonts should be similar even if the size may be slightly different.
“” + @newline +
“textarea {font-family:sans-serif; }” + @newline +
" "
Note:
-
the ‘@newline’ is not needed, just there for ease of viewing in browswer source
-
you could use a different font to ‘sans-serif’ by changing the name in the example (just make sure the font is available on all users computers)
-
the rich text field is presented as an HTML ‘…’ in the browser.
-
you could set many other attributes using this method - check out CSS (cascading style sheets).
hth
Richard
Subject: RE: FIELD on web
Thx. It’s greate :).
Subject: RE: FIELD on web
To further clarify … Richards suggestion will work in edit mode ONLY as the html element is only generated then. In read mode the rich text field is rendered by Domino in whatever font and color/style you have it setup up on the form in the designer. You can FORCE a look by using CSS as Richard has suggested but you will have to wrap a SPAN or a DIV tag around the field.
FIELD
Make sure to mark the SPAN tag as pass-thru HTML or enclose with open/close braces .