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

Input field update bug?

So I am experiencing what I can only construe as a bug with the sheets framework.  I have some html that looks like this... <input class="show-vehicle-control" type='checkbox' name='attr_ShowVehicle' value="20">     < div class = 'sheet-item show-vehicle-conditional' style = " width: 20%" >     < input name = "attr_Testfield" type = "text" /> </ div > I can modify it in the sheet, looks fine, but when I close the sheet and open it again, the values are gone.  The underlying attributes are still set in the attributes & abilities panel, but they are not being displayed in their data-bound inputs.  I have no other copy of the sheet open.  I am the only person in the room.  I can also reload and it will be gone, I can exit and come back and it will be gone, whether the sheet is open or closed when I trigger these reloading methods.  I have looked at the code for a bit now, and it seems functionally equivalent to how display tabs work and so (which are remembered), but not these input fields.  The other fields in the sheet I am working with appear to behave normally.  Anyone have any ideas?
1543023724
vÍnce
Pro
Sheet Author
Your code looks fine.  What happens if you manually delete the attributes completely from the  attributes & abilities panel?
1543026764
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You don't have any sheetworkers that might be modifying things perhaps? Also, with sheets it is best practice to make attribute names all lower case and use underscores to separate names since the sheetworkers will always see these as lowercase anyways, it makes thinking of your attributes easier when writing the JS.
I have no sheet workers which reference them, but I can't speak to side effects.  I'm modifying the existing Black Crusade sheet at the moment.  These attributes are new and appear no where else in the file.