Dynamically change font colour?

Does anybody know if it’s possible to dynamically change font colours on a form ?

For example if a date meets a certain criteria, it will change to red ?

I know how to do it in a view, but have never done this before on a form.

Thanks…

Subject: rtitem

Try looking at rtitem. You’re going to have to jump thru some hoops with setting and refreshing. Sorry I don’t have some example for you right now.

Subject: HideFormulas

Lotus notes has no direct programmatic access to any designer properties. At least not without using C API toolkit.

What Lotus Developers do is use duplicate fields with Hide formulas.

Field1 (in 8pt Arial, Black)

Field2 (in 10pt, Arial, Red, Bold)

Go to the hide formulas of each field (or rather each line) and set the formulas to hide inversely for each. That way, the formatting you want is displayed at the appropriate time.

Subject: Thanks

Hi Stephen,

Thanks for the reply. That was the way I was going to do it, but figured there may be a better way that would save me from having two fields.

Many thanks !

Subject: notes wish list

I was hoping with Notes 8 there would be a simple way to access designer properties with Lotus Script, for example, uidoc.FormatField(“Field1”, “Font”, “Arial”) or uidoc.FormatField(“Field2”, “Color”, “Red”).

Apparently the lack of a class to access field properties is due to the fact that fields don’t actualy have any formatting properties, you’re in fact changing the paragraph formatting that is encapsulating that field. Kinda like as if the Notes Form is one massive RichText field.

If that is the case though, I’m not sure why fields within Layout Regions cannot be accessed then?