Adding Databases up with a button

Hey i was trying to make a button that gets a “number” value from a certain database and adds a certain amount to it. Is this possible or should i figure out a different way to do it? Im new to wix code and im not very good. Thank You.

EX. Number = 2

  • A button labeled “+2” is clicked and the number changes to a 4.

Hey!

check this video to know more about collections and how to connect it to your fields.

you need to make a dataset and connect a text field with number you retrieved from database and change it after pressing the button by (onClick) method

and maybe you want to know how to update the value you doubled in the database “after making the write permission”

I recommend you to read more and watch more videos about wix code before starting a real coding.
this would help you out.

good luck! :wink:

Thank You very much!