When I assign ID number 1 to the first button in each group, they all end up with the same ID, causing conflicts. How can I solve this issue?

Yes, I have a minor increase in the number of buttons.


If your structure is Category >> Section >> Content, leave stopButtonGenerationAt at 2.


This loop is used to delete the buttons before generating new ones.
It’s not super efficient, but just set this value to 21 since you told me you have a maximum of 21 elements.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.