Here below is my code for counting number of repeaters generated by a user.
I have a checkbox on Dynamic page and a number field with field value num. How can I have checkbox clicked when totalCount is equal to number field? Could any please help me?
I am trying to limit number of comments on dynamic page. If totalCount is equal or greater than the number field, I want to set boolean field in collection to true. If boolean is true, then user cannot comment. This part I have already coded. I just want to set boolean field true when totalCount becomes equal to number field.
Here below is my code. I don’t know why it is not working. Now I am not using any checkbox on dynamic page. When totalCount becomes greater than commentLimitCount, I want to set the boolean field commentsDisabled true. Could you please guide me how to do this?