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 / September 2007

Tip: Looking for answers? Try searching our database.

making required fields optional and other questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hoping To Be Impressed by Infopath - 11 Sep 2007 20:20 GMT
1) I made a form from an XML Schema, and several non-required integer schema
attributes became required fields on the form. The "Cannot be left blank" box
is checked and noneditable. Any fix?

2) I have a repeating table bound to a schema element with MinOccurs=0, but
it won't let me set the number of rows to 0. This has worked for other
Repeating sections, but for some reason this one doesn't offer me that
option. Its a problem because the attributes are required within a row, but
the row is not required; at the moment since I must have one row the
attributes become effectively required for the form.

3) Is there a way to push XML content to a Web browser and launch InfoPath
as a viewer app (if I don't have InfoPath Forms Services)? Is there a way to
encode the form location in the Web message so that InfoPath will
automatically find it?

Thanks, -Stan
Greg Collins - 11 Sep 2007 23:32 GMT
1. Non-String attributes are ALWAYS required. Solution1: Make the attributes
strings. Solution2: Change non-string attriubtes to elements, and make them
nilable.

2. Go to Tools | Default Values, and uncheck the box for the repeating node.
This will tell the template to not insert a row by default.

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com

Zen Monkey - 14 Sep 2007 18:38 GMT
On Sep 11, 12:20 pm, Hoping To Be Impressed by Infopath
<HopingToBeImpressedbyInfop...@discussions.microsoft.com> wrote:
> 1) I made a form from an XML Schema, and several non-required integer schema
> attributes became required fields on the form. The "Cannot be left blank" box
> is checked and noneditable. Any fix?

I just dealt with this one myself and here's the solution I cam up
with: Open the schema xsd file in Visual Studio and set the fields to
"nilable". Now, they are no longer required fields. Hope that helps
 
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.