AnsweredAssumed Answered

Forms: Repeating Section

Question asked by franco89 on Mar 23, 2017
Latest reply on Mar 24, 2017 by

Hi All,

I have a Repeating Section which contains some controls. 

I see that the minimum rows you are allowed to set is 1. I'd prefer it be zero but it looks like that is not possible by design.


However, it is very important for part of my workflow that certain actions ONLY execute if the count of the rows in the repeating section is greater than zero, because therefore it actually contains data! However, I'm seeing that my count is actually counting the blank row as a legitimate row and this is a big problem. 


IS there any way I can validate in my count whether the node actually contains data, and not to count it if it's empty?


Here is the XSLT I use to count the number of "items":



<?xml version='1.0'?>
<xsl:stylesheet version="1.0"

<xsl:output method="text" />

<xsl:template match="/">
<xsl:value-of select="count(//RepeaterData/Items/Item)"/>