
I've read a few solved threads that seem to be about the same thing I'm after, but can't manage to replicate it so hopefully where I'm going wrong will be obvious to someone. I'm looking to have a repeating section in which there is a drop-down field and a bunch of others. Then a sheetworker will fill in the other fields depending upon what is selected in the dropdown. Here's the drop-down: <select name="attr_gearname"> <option value="gun">gun</option> <option value="knife">knife</option> <option value="car">car</option> </select> Here are the fields to populate: <input type="text" class="sheet-open" style="width:200px;" name="attr_effe" /> <input type="text" class="sheet-open" style="width:200px;" name="attr_qual" /> <input type="text" class="sheet-open" style="width:200px;" name="attr_upgr" /> Here's the sheetworker: on("change:gearname", function () { getAttrs(['gearname'], function(values) { const gears = { gun: {Effect: "GE", Qualities: "GQ", Upgrades: "GU"}, knife: {Effect: "KE", Qualities: "KQ", Upgrades: "KU"}, car: {Effect: "CE", Qualities: "CQ", Upgrades: "CU"}, }; let gearname = values.gearname; setAttrs({ "effe": gears[gearname].Effect, "qual": gears[gearname].Qualities, "upgr": gears[gearname].Upgrades }); }); }); Can anyone spot the problem?