Optional, but required element (InfoPath 2003)

T

tieto

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

Greg Collins

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.
 

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