Skip to main content
Nintex Community Menu Bar

How to count dynamically the number of items in repeating section ?

  • June 8, 2016
  • 5 replies
  • 114 views

Forum|alt.badge.img+6

Hello everyone,

I have a little question for the community.

My situation :I want to count the number of items in a repeating section dynamically when user fills the form.

The problem :

I know how to count the number of items when the form has been submitted but I don't know how it work before the submit (when user fills the form).

I assume that I need to use javascript but I want to know if an another method exist before develop specific code.

Thanks

Théo

5 replies

Forum|alt.badge.img+7
  • June 8, 2016

Forum|alt.badge.img+6
  • Author
  • June 8, 2016

Hello Frank, I check that solution tomorrow and I get back to you for my feedback.


Forum|alt.badge.img+6
  • Author
  • June 9, 2016

I don't have test JS like Vadim because I found an easier way to do this.

My method :

- In the repeating section, I add calculated value hide by another control (textbox for my form).

     The parameter of calculated value controle :

     Formula (inline function) : currentRowNumber(a random control in the repeating section)

     Name : calc_currentRow (for exemple)

- In the form now, i simply add another calculated value with this parameters

     Formula (inline function too) : count(calc_currentRow)

     Name : calc_aaaa

     Data type : Integer

And it work well =).

When I found this solution, I see that you can add number for every row when you do the first step but without hide the calculated value.

Hope it could be useful =) Frank FieldJan Eyres

BR

Théo


Forum|alt.badge.img+2
  • July 19, 2017

Excuse me, Could you describe more details?

I try to follow your way but it's not work, please help

 

Thank you .


Forum|alt.badge.img+6
  • Author
  • August 3, 2017

Hi,

A picture will be more relevant happy.png