making required fields optional and other questions

  • Thread starter Hoping To Be Impressed by Infopath
  • Start date
H

Hoping To Be Impressed by Infopath

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
 
G

Greg Collins

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

Zen Monkey

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
 

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