Button to add/subtract value from number property

What I’m trying to do

I have a property set up like:

items:

  • item: Gold coins
    holder: Party
    qty: 50

On my page I would like a number input, a plus button, and a minus button. Then when you click plus or minus it adds or subtracts that number from the total in the session property.

Like this

Gold - [number_input] [Add_button] [Subtract_button]

Things I have tried

I think this should be possible with meta bind but I have checked youtube, searched this forum, tried chatgpt and checked help docs but I can’t seem to work it out :frowning:

items:
  - item: Gold coins
    holder: Party
    qty: 50

Here is a variant using dataviewjs to count correct and total answers, which could be adapted to your use case.

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