How to make Person/Group picker field mandatory through XSD? - InfoPath Dev
in

InfoPath Dev

Qdabra® Training

Use our Google Custom Search for best site search results.

How to make Person/Group picker field mandatory through XSD?

Last post 01-16-2012 05:31 PM by Anson Hidajat. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-16-2012 12:45 AM

    How to make Person/Group picker field mandatory through XSD?

     

    Hi All,

    I have designed forms in infopath 2010 based on XSD. I use BuiltInActiveXControls.xsd to add person/group elements in my XSD. But I am not able to make it mandatory. I don't want to build all the forms again without XSD because already I have put many efforts building these forms throght XSD. Can you please suggest me how to make it mandatory through XSD? Even if I specify minOccurs=1, it is still optional field.

                <xs:element name="ApproversList">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element ref="pc:Person" minOccurs="1" maxOccurs="unbounded"/>
                            </xs:sequence>                       
                          </xs:complexType>                     
                        </xs:element>     

    I appreciate your suggestions.

    Thanks,

    Rahul Babar
    ================================================
    ASP.NET, C#, Sharepoint 2007/2010/2013/SP Online, Infopath 2007/2010/2013 Admin/Developer
  • 01-16-2012 12:32 PM In reply to

    Re: How to make Person/Group picker field mandatory through XSD?

    Hi there,

    Cannot be blank for the people picker is actually a control property instead of a field property.  You should be able to simply go to the control properties and select cannot be blank even if the form is based off an XSD.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 01-16-2012 05:14 PM In reply to

    Re: How to make Person/Group picker field mandatory through XSD?

     Yes, but unfortunately that option is disabled for me. This option is available for me if I don't use XSD.

    Thanks,

    Rahul Babar

    ================================================
    ASP.NET, C#, Sharepoint 2007/2010/2013/SP Online, Infopath 2007/2010/2013 Admin/Developer
  • 01-16-2012 05:25 PM In reply to

    Re: How to make Person/Group picker field mandatory through XSD?

    When I extracted the form designed without xsd with a mandatory Person/Group field on it, I got to know that in .xsf file only it is adding some custom validation for can not be blank, it is not something managed in XSD. May be I can do the same thing for my forms as well. I will try this and update here again.

    Thanks,

    Rahul Babar

    ================================================
    ASP.NET, C#, Sharepoint 2007/2010/2013/SP Online, Infopath 2007/2010/2013 Admin/Developer
  • 01-16-2012 05:31 PM In reply to

    Re: How to make Person/Group picker field mandatory through XSD?

    That is correct.  Any control based properties will appear in the XSF instead of the XSD.  Hopefully adding that custom validation will work for you :)  Good luck!
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.