Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2006

Tip: Looking for answers? Try searching our database.

Add unbound checkbox and changing status based on bound control value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vpman - 15 May 2006 04:36 GMT
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 )

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.