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 .
×
Create a free account

[Need Advice] Maintaining compatibility while changing the sheet

1430207167
Kryx
Pro
Sheet Author
API Scripter
I'm continuously looking to improve my 5e Shaped sheet, but often encounter points where users would lose some data based on a change. The change is better, but if a user loses data then that's not good. A few items I'd like to clarify: Converting from non-repeating section to a repeating section. Is there a way to maintain the same name? I have 1 checkbox now that I use to show/hide some things. I want to change this into 2 checkboxes. Is it possible to have the two new checkboxes be equal to 1 if the old checkbox had a value of 1? I assume neither of these is possible and it's rather unfortunately limiting. Any advice is welcomed.
1430210231

Edited 1430210540
Finderski
Plus
Sheet Author
Compendium Curator
Good question. I'm assuming not, but you could try naming each input field with the name = attr_repeating_<repeating section name>_#_<field name> and see if that works. I don't think that's going to work, though. You might also try hiding the repeating section, but don't get rid of it, and in your new fields make the value=@{repeating_field_name}, but now that I think about that, I don't think that's going to work either, because that seems to only work for calculated fields and roll buttons... Maybe have a checkbox to show/hide the repeating section initially? That way people can manually migrate their data from the repeating section to the non-repeating section, and then after a few weeks or so, remove the repeating section completely. I'm struggling to follow what you mean. See if I got this right: today you have checkbox_1 with a value (say 1), and "tomorrow" you want checkbox_2 and checkbox_3 to have a value of 1 if checkbox_1 = 1. Is that right?
1430210704
Kryx
Pro
Sheet Author
API Scripter
G V. said: Good question. I'm assuming not, but you could try naming each input field with the name = attr_repeating_<repeating section name>_#_<field name> and see if that works. I'm struggling to follow what you mean. See if I got this right: today you have checkbox_1 with a value (say 1), and "tomorrow" you want checkbox_2 and checkbox_3 to have a value of 1 if checkbox_1 = 1. Is that right? 1. I did name some variables repeating in the future anticipation of making them repeating, but what I'm looking to do is convert an existing item from non-repeating to repeating. The names change so I believe there is nothing to be fixed here. 2. Correct. I won't use checkbox 1 anymore, but I could leave it there as some hidden vestigial thing. I may have another solution in my specific case, but it would be nice to know if there is a general solution.