
I have a weapon repeatable field, but having problems around using sheetworkers for repeatable fields because it makes it where the last row cannot be removed. I know this has been handled before but someone should put it in wiki (I couldn't find it). Here is the code: I am trying to put the melee score into the weapontotal attribute within the sheet without using @{melee} - using sheetworker. Please let me know if this is the right direction and what I am doing wrong - right now it shows nothing in the field (blank). on("change:melee change:repeating_meleeweapon sheet:opened", function() { getAttrs(['melee','repeating_meleeweapon_weapontotal'], function(values) { const meleeValue = parseInt(values.melee); getSectionIds("repeating_meleeweapon", function(idarray) { const updateAttrs = {}; idarray.forEach(function(currentId) { updateAttrs[`repeating_meleeweapon_${currentId}_weapontotal`] = meleeValue; }); setAttrs(updateAttrs); }); }); });