Skip to main content
Nintex Community Menu Bar
Solved

Counter in Repeating control in Automation Cloud

  • October 4, 2023
  • 2 replies
  • 62 views

Forum|alt.badge.img+2

We are working with repeating section in Start Form. We want to add a label or text field for Item # field in repeating section and it should be auto populate with sequence no when user add a new row. Is there any possibility for this. 

Best answer by AnthonyD

Hello there,

It is possible to create a form variable that counts the amount of repeating controls.

From there, you can create a rule that says if the index is empty (and other controls), to populate the index value (you will need to convert the int to a string first).
 


Working example:
 

 

 

Another way is to just do a loop in the workflow where you can record the row number in a separate system.

 

I have attached the workflow export below:
PzBN5KPNszJ9pRYgbyuVrrQWyhg7wRGEJRM2LCBWmh2x4LNti

 

Please let know if this resolves the question,

Anthony

 

2 replies

AnthonyD
Nintex Employee
Forum|alt.badge.img+6
  • Nintex Employee
  • Answer
  • October 4, 2023

Hello there,

It is possible to create a form variable that counts the amount of repeating controls.

From there, you can create a rule that says if the index is empty (and other controls), to populate the index value (you will need to convert the int to a string first).
 


Working example:
 

 

 

Another way is to just do a loop in the workflow where you can record the row number in a separate system.

 

I have attached the workflow export below:
PzBN5KPNszJ9pRYgbyuVrrQWyhg7wRGEJRM2LCBWmh2x4LNti

 

Please let know if this resolves the question,

Anthony

 


Forum|alt.badge.img+2

Hello there,

It is possible to create a form variable that counts the amount of repeating controls.

From there, you can create a rule that says if the index is empty (and other controls), to populate the index value (you will need to convert the int to a string first).
 

Working example:
 

 

 

Another way is to just do a loop in the workflow where you can record the row number in a separate system.

 

I have attached the workflow export below:
PzBN5KPNszJ9pRYgbyuVrrQWyhg7wRGEJRM2LCBWmh2x4LNti

 

Please let know if this resolves the question,

Anthony

 

Thanks for your reply. It works.