Form color based on value of field

Is there a way to set the color of a form based on the value of a field ? Let’s say if FieldA is 1, make the form white, if FieldA is 2, make it light blue.

Thanks

Jacob

Subject: Use a computed resource.

Subject: Like this:

→

Subject: form color based on value of field

The form color can either be specified in the Form or the Document. (If both, I’d guess that the form wins…)

You might be able do this in PostOpen by setting the $Papercolor field to a desired value.

For example, this document has $PaperColor = 21

Subject: *Correct, except that the document is more likely to win than the form