Limit number of repeating section - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Limit number of repeating section

Last post 05-17-2016 07:54 AM by Adriano. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-11-2016 05:56 PM

    Limit number of repeating section

    hello. friends.

    I have a problem in infoptah 2010 and hopefully you can help me. 

     

    how I can do to users only you can add three repeating sections in my form in InfoPath? I want some suggestion using expresions or rules. 

     

    I thank you in advance for your trouble and sent a greeting. 

  • 05-16-2016 05:50 PM In reply to

    Re: Limit number of repeating section

    Hi Adriano,

    Three ways...

    1. Simple: add a validation rule to the repeating group in your main data source with a condition the count of the repeating section is <= 3.
    2. Medium: add three rows for your repeating section in the data -> default data area. Right click the control and uncheck the box to allow insert/delete.
    3. Complex: export the InfoPath Template as source files and open the myschema.xsd in notepad and search for the repeating group and where it says maxOccurs="unlimited" change it to maxOccurs="3". Save. Right click manifest.xsf and choose Design and then save or publish the source files back as an XSN.

    All techniques should work, but I like simple or medium since you can control the error message or just not have to worry about it. 

    Best of luck, 

    Patrick Halstead
    Project Manager at Qdabra
  • 05-17-2016 07:54 AM In reply to

    Re: Limit number of repeating section

    thank you very much for all I served much. 

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