Lotus Notes FAQ Visit Our Sponsor!

Can you dynamically change the color of the form?

You can put a number in the $papercolor field when the form is first opened.
This is from the code in the Color Swatches database. You can set the field "ColorName" to the name you see in the InfoBox's Color Chooser and put this formula in the $papercolor field:

"dark red":
"dark green":
"dark blue":
"dark magenta":
"dark yellow":
"dark cyan":
"light gray":
"pale green":
"sea mist":
"ice blue":
"powder blue":
"arctic blue":
"lilac mist":
"purple wash":
"violet frost":
"rose pearl":
"pale cherry":
"light yellow":
"pale aqua":
"pale blue":
"crystal blue":
"light cornflower":
"pale lavender":
"grape fizz":
"pale plum":
"pale pink":
"pale rose":
"rose quartz":
"5% gray":
"red sand":
"pale lemon lime":
"mint green":
"pastel green":
"pastel blue":
"light lavender":
"pale purple":
"light orchid":
"pink orchid":
"apple blossom":
"pink coral":
"10% gray":
"light salmon":
"light peach":
"leaf green":
"light aqua":
"light turquoise":
"light cerulean":
"light purple":
"dusty violet":
"pastel pink":
"pastel red":
"15% gray":
"lemon lime":
"neon green":
"purple haze":
"cherry pink":
"red coral":
"20% gray":
"dark salmon":
"dark peach":
"yellow green":
"light green":
"dark pastel blue":
"dark cerulean":
"manganese blue":
"light red violet":
"light magenta":
"carnation pink":
"25% gray":
"dark turquoise":
"light slate blue":
"medium blue":
"dark lilac":
"royal purple":
"confetti pink":
"pale burgundy":
"30% gray":
"burnt orange":
"dark orange":
"light olive":
"kelly green":
"sea green":
"aztec blue":
"dusty blue":
"deep purple":
"red violet":
"hot pink":
"dark rose":
"poppy red":
"35% gray":
"light brown":
"dark green":
"dark teal":
"slate blue":
"navy blue":
"blue violet":
"dark red violet":
"light burgundy":
"cherry red":
"40% gray":
"dark crimson":
"dark red":
"dark olive":
"dark spruce":
"steel blue":
"dark magenta":
"50% gray":
"dark brown":
"deep olive":
"dark emerald":
"baltic blue":
"blue denim":
"cobalt blue":
"dark iris":
"dark plum":
"plum red":
"dark burgundy":
"60% gray":
"terra cotta":
"peacock green":
"seal blue":
"dark slate blue":
"royal blue":
"dark grape":
"dark plum red":
"deep scarlet":
"70% gray":
"red gray":
"bamboo green":
"green gray":
"baltic gray":
"blue gray":
"rain cloud":
"lilac gray":
"light purple gray":
"light mauve":
"light plum gray":
"light burgundy gray":
"rose gray":
"80% gray":
"dark red gray":
"dark tan":
"olive gray":
"dark green gray":
"spruce gray":
"dark blue gray":
"atlantic gray":
"dark lilac gray":
"purple gray":
"plum gray":
"burgundy gray":
"dark rose gray":
"black") - 1

Applies to Notes Versions: 4, 4.5, 4.6, 5
Last Modified: December 2, 1997