Alc
May 21, 2025, 8:08pm
1
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
Alc
May 21, 2025, 8:09pm
2
items:
- item: Gold coins
holder: Party
qty: 50
holroy
May 21, 2025, 10:48pm
3
Here is a variant using dataviewjs to count correct and total answers, which could be adapted to your use case.
I would join the two changes to the frontmatter into one call of app.fileManager.processFrontMatter(), so you don’t have two independent file write operations to the same file.
And the code also demands for the properties to be present when you start the show… There is also a small feature, that if you spam click either button, it might lag a little (or demand another click (or reload) after a little delay) to get the correct number.
Accounting for all of this, and joining the handling into on…
system
Closed
June 18, 2025, 10:48pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.