Ethaks
Ethaks
Check box not linked to the property
Foundry's form handling will only update the document that the sheet is for, not embedded/descendant documents like Items owned by the actor. So for above case, the actor's source data would get updated, not the item that's meant to receive the update. To update an embedded item, you'll have to manually pass through such data, bypassing the normal form handling. The gist of it would be to remove the name attribute and replace it with e.g.data-property, and then add a change listener in the sheet that retrieves the relevant item via id and the field/property path as well as the input value from the input, and then forwards that to the item via update.
7 replies