Kalltern
LOELeague of Extraordinary FoundryVTT Developers
•Created by Kalltern on 11/3/2024 in #system-development
Check box not linked to the property
Hello, I am using boilerplate but currently I am having an issue with linking my checkbox using handlebars. I have created json property equipped for weapon. I have created a listener but in no way I am able to make it work. So the in the actor sheet box automatically unchecks after update. and console log does not register anything
Can anyone please give me advice on how to solve this or show how the handlebars should be working for checkbox on Foundry?
This is my .hbs file code snippet
<input
type="checkbox"
name="system.item.weapon.equipped"
class="equip-toggle"
title="Equip Weapon"
data-dtype="Boolean"
data-item-id="{{item._id}}"
{{checked system.item.weapon.equipped}}
/>
7 replies