Add unbound checkbox and changing status based on bound control value

V

vpman

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.
 
S

Si

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
 
G

Greg Collins [InfoPath MVP]

Yes, using an XML secondary data source is the appropriate solution for your situation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top