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

Tip: Looking for answers? Try searching our database.

Hidden Required Fields upon submitting Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jmamakes3 - 02 Jul 2007 18:26 GMT
I am Business Analyst not a programmer trying to create an Infopath form that
has required fields.

Issue if "Is this a Provider or Resource" = Resource
    then Resource Field is required and
            Provider Last Name and Provider First Name fields are hidden
If "Is this a Provider or Resource" = Provider
     then Provider Last Name and Provider First Name fields are visible and
required and
             Resource Field is hidden

What do I do when upon submitting the form, I get the message that it
contains validation errors.  Errors are are marked with either a red asterisk
(Required) or red dashes.

The programmer manager told me I am making the form to difficult and to
remove the required fields but this defeats the purpose of the form.

Any help appreciated.

Thank you
Maria
K.Ramana Reddy - 03 Jul 2007 07:58 GMT
hi,

Use below code before saving the form,
thisXDocument.Errors.DeleteAll()(this is for C#)

I hope this will help for you.
Signature

k.Ramana Reddy
http://www.autonomysystems.com

> I am Business Analyst not a programmer trying to create an Infopath form that
> has required fields.
[quoted text clipped - 18 lines]
> Thank you
> Maria
jmamakes3 - 03 Jul 2007 14:46 GMT
K. Ramana,
Thank you for the update, quick question, where do I exactly insert the
specific code, towards the end of the existing code?  I have inserted the
last section of my current code

Since I am not a programmer I am not sure how to actually write the string
of code
<xsd::restriction>
    </xsd:simpleType>
    <xsd:simpleType name="this ProviderDocument.Errors.DeleteAll()">
        <xsd:restriction base="xsd:anyURI">
            <xsd:minLength value="1"/>
        </xsd:restriction>

LAST Section of Code:
</xsd:element>
    <xsd:element name="Provider_Number" type="xsd:string"/>
    <xsd:element name="IDX3" nillable="true" type="xsd:boolean"/>
    <xsd:element name="IDX123" nillable="true" type="xsd:boolean"/>
    <xsd:element name="Epic_Assigned" nillable="true" type="xsd:boolean"/>
        <xsd:simpleType name="requiredString">
        <xsd:restriction base="xsd:string">
            <xsd:minLength value="1"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="requiredAnyURI">
        <xsd:restriction base="xsd:anyURI">
            <xsd:minLength value="1"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="requiredBase64Binary">
        <xsd:restriction base="xsd:base64Binary">
            <xsd:minLength value="1"/>
        </xsd:restriction>
    </xsd:simpleType>
</xsd:schema>

Thank yo
--------------------------------------------------------------------------------------------

> hi,
>
[quoted text clipped - 25 lines]
> > Thank you
> > Maria
Bob C. - 03 Jul 2007 15:50 GMT
Another good approach that doesn't require code is to use Data Validataion
settings.  To make this work for you you would remove ther required setting
from the field/node in question.  Then through validation settings on the
"Resource Field" set validation.

> I am Business Analyst not a programmer trying to create an Infopath form that
> has required fields.
[quoted text clipped - 18 lines]
> Thank you
> Maria
jmamakes3 - 03 Jul 2007 19:44 GMT
Bob,
Thank you for the different approach.

I think this is working thus far except that for a repeating table that I
just one the first row to be filled out but any subsequent rows are not
needed.  Currently if the first four rows are filled out the code thinks the
fifth row needs populating also.

Thank you

> Another good approach that doesn't require code is to use Data Validataion
> settings.  To make this work for you you would remove ther required setting
[quoted text clipped - 23 lines]
> > Thank you
> > Maria
 
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.