Infopath Expression - count of files attached to form - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Infopath Expression - count of files attached to form Use our Google Custom Search for best site search results. Infopath Expression - count of files attached to form Last post 10-02-2020 08:38 AM by ipisors. 6 replies. Page 1 of 1 (7 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-01-2020 03:37 PM ipisors Joined on 04-22-2020 Posts 59 Infopath Expression - count of files attached to form Reply Contact I want to know how to make an expression that counts how many attachments the user has put on the form, so that, before I submit it, I can use a rule to stop, if the count of attachments is fewer than I want. Is this possible? 10-01-2020 04:01 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 12,539 Re: Infopath Expression - count of files attached to form Mark as Not AnswerMark as Answer... Reply Contact Is the attachment in a repeating group or repeating itself? If so, you can just use the count function... Hilary Stoupa 10-01-2020 04:04 PM In reply to ipisors Joined on 04-22-2020 Posts 59 Re: Infopath Expression - count of files attached to form Mark as Not AnswerMark as Answer... Reply Contact No, it's just the default "click here to attach a file" thing. 10-01-2020 04:33 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 12,539 Re: Infopath Expression - count of files attached to form Mark as Not AnswerMark as Answer... Reply Contact Oh, is this a list form? Sorry, trying to understand your data source. Hilary Stoupa 10-02-2020 08:01 AM In reply to ipisors Joined on 04-22-2020 Posts 59 Re: Infopath Expression - count of files attached to form Mark as Not AnswerMark as Answer... Reply Contact Yes - sorry. My entire knowledge is comprised of this context so I forget to specify it. I created a List, then used "customized in infopath". using sp 2010 and infopath 2013. 10-02-2020 08:23 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 12,539 Re: Infopath Expression - count of files attached to form Mark as Not AnswerMark as Answer... Reply Contact count(/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:Attachments/attachmentURL) should do the trick.... If you look at your datasource in "advanced" view, you'll see attachmentURL is repeating. Hilary Stoupa 10-02-2020 08:38 AM In reply to ipisors Joined on 04-22-2020 Posts 59 Re: Infopath Expression - count of files attached to form Mark as Not AnswerMark as Answer... Reply Contact Wow, that worked perfectly! Thank you so much. I had tried to use a similar but slightly different expression I found elsewhere and it did not work. Thanks again! Page 1 of 1 (7 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.