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 / January 2008

Tip: Looking for answers? Try searching our database.

Optional, but required element (InfoPath 2003)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tieto - 28 Jan 2008 12:44 GMT
Hi

I have an optional (minOccurs="0"), required (nillable="false") element
bounded to a field. In addition this field is only visible, if another field
have a certain value.

If the field is not assigned a value or not visible I don't want it to
appear in the resulting XML.

How on earth do one do that in InfoPath 2003??

Any help much appreciated.
Greg Collins - 29 Jan 2008 00:47 GMT
You can use Tools | Default Values to specify that the field not appear in
the INITIAL xml document. However, you will need to write code to insert the
node as needed.

Or, you can write code to remove the field before save or submit.

Either way, code will be required.

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at 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.