I would like to add an unbound checkbox to my form that will be either
checked or unchecked based on the values of two bound controls. For
example, if the value of one control is less than 90% of the other
control, I would like the checkbox to be checked, otherwise unchecked.
I can use an expression box with conditional formatting to display in a
certain fashion (i.e bold, different color, etc.) according to the
values of other controls, however I am after some form of graphical
representation that will be easily viewed when the document is printed
on a monochrome printer.
Any help would be appreciated.
Si - 15 May 2006 06:23 GMT
Hi,
As far as I am aware you cannot have an unbound control, however you
can get around this by creating an xml document with a child node (or
nodes as required). Load this as a resource file and then add as a
receive data connection. This gives you somewhere to store the value in
and bind it to the checkbox.
You can then set a rule for each of the other controls that has no
condition runs that sets the value of the checkbox i.e.
GetDOM("importedDoc")/root/node = (my:fieldA * 0.9) < ../my:fieldB
HTH,
Si
> I would like to add an unbound checkbox to my form that will be either
> checked or unchecked based on the values of two bound controls. For
[quoted text clipped - 8 lines]
>
> Any help would be appreciated.
Greg Collins [InfoPath MVP] - 17 May 2006 17:43 GMT
Yes, using an XML secondary data source is the appropriate solution for your situation.

Signature
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )