cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

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

Jump to solution

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

Reply
7 Replies
Workflow Hero

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

Jump to solution
Reply
Not applicable

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

Jump to solution

Is this getting you a solution, Theo Delsante​? Let us know, thanks!

0 Kudos
Reply
Workflow Hero

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

Jump to solution

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

Reply
Workflow Hero

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

Jump to solution

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

Reply
Not applicable

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

Jump to solution

Feel free to mark your own answer correct here, Theo Delsante​! Thanks for reporting back!

0 Kudos
Reply
Workflow Hero

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

Jump to solution

Excuse me, Could you describe more details?

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

 

Thank you .

0 Kudos
Reply
Workflow Hero

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

Jump to solution

Hi,

A picture will be more relevant

0 Kudos
Reply