Uipath Form- "Add Another Button" should disable based on number of rows exceeds

Hi

I am using uipath form activity and i need to set a maximum number for rows(for e.g upto 5 rows) in the datagrid and if the user exceed these numbers ,“Add Another” Button should get disable.

Kindly help me to solve this issue.

Thanks

Hi, :slight_smile:
have you tried in loop?
Create a variable with assign (like counter) and assign the number to which number you want it to try. Then you can loop it and click the button with the click action when you reach the counter.