I am working on a GURPS character sheet and I have a repeating section for hit locations. Most characters will have the same hit locations, but some may not have all of them, or may have alternate hit locations. I want to create the list the first time the sheet is opened, but be editable in a repeating section. I have modified this code that GiGs helped me with for a different sheet: getSectionIDs('repeating_locations', idarray => { if(idarray.length > 0) { return; } else { const rowid = generateRowID(); setAttrs({ [`repeating_locations_${rowid}_hitLocation`]: 'Skull', [`repeating_locations_${rowid}_hitLocationDescription`]: '-7 to hit. The part of the head that houses the brain. The skull gets an extra DR 2, the wounding modifier for all attacks increases to ¥4, knockdown rolls are at -10, and critical hits use the Critical Head Blow Table (B. 556). Exception: None of these effects apply to toxic damage.' }); } }); }); But I need to add a number of rows. How do I generate multiple row IDs and populate them?