How to update data using onClick button

Thank you to point out that the problem is the global variable.
It really helps. :+1:t2:

1 Like