Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Deleting attributes with a sheetworker

I've been updating an old sheet for awhile, and older characters have many unused attributes. Is there now a way to remove them with a sheetworker? It seems that version update code that I've seen, just keeps the old attributes. If I set it to Undefined, it removes it from the Attributes & Abilities tab, but I'm afraid that it is either just hiding it, or could cause data loss later. Does this seem safe?
Which sheet?  Are you updating the character sheet code, or trying to use a Mod script?  If you're updating the character sheet code, then I suggest posting in the  Character Sheets & Compendium forum . If you're using a Mod script, I suggest posting in the  Mods (API Scripts) forum . You'll get more targeted help in those.
I don't think there is a place for building character sheets. I've always posted them here. Working on a sheetworker pretty much explains it.
1789321739

Edited 1789450542
vÍnce
Pro
Sheet Author
Sheet-related (building or otherwise) is best handled in  Character Sheets & Compendium  forum. Regarding your question;  I'm not sure you can actually delete attributes using sheetworkers or otherwise once created.  You can delete non-repeating attribute manually from the Attributes & Abilities tab, or using the modify/delete option for repeating attributes. (or removeRepeatingRow() via sheetworker)  Setting an attribute's value to an empty string, i.e "" probably has the least impact on a sheet. Curious, "unused attributes..." are these attributes no longer needed at all?  Have they been removed from the latest HTML?  If so, only the older, existing sheets may have the attributes, but newer sheets will not.  Do you need to migrate older attribute data to newer ones?  What is your goal/use-case?
Migrating older attribute data. It's a very old sheet, and I've renamed almost all of the attributes at this point. Really old sheets would have maybe 100+ unused attributes. I thought they might impact performance.