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

Repeating fieldsets not saving.

Text inputs in my repeating fieldsets aren't saving. type=number inputs save, but the auto-calc fields based on any inputs (including the number inputs), reset to default values until the number inputs get updated again and text inputs get blanked when I close and re-open the sheet. The campaign ID is 31982 and it is on the dev server.
1401475409
Lithl
Pro
Sheet Author
API Scripter
Could you post the HTML for your fieldset?
<a href="http://pastebin.com/brsuuYs1" rel="nofollow">http://pastebin.com/brsuuYs1</a> This one only saves the number inputs <a href="http://pastebin.com/YfUGnec3" rel="nofollow">http://pastebin.com/YfUGnec3</a> This one has no number inputs, so saves nothing and the item vanishes on close/open.
1401479242
Sam M.
Pro
Sheet Author
I know what you're talking about. Sometimes my sheet's auto-calc fields are set to default, usually when I start the campaign, and when I drag a token onto the field, it updates their sheet. Idk if that's what's happening to you but it is kinda weird that they do that.
1401479503
Lithl
Pro
Sheet Author
API Scripter
Hmm, the fact that you're not quoting all of your attributes (eg, disabled=true instead of disabled="true"), and the fact that you're relying on the browser to default the input element to a text input (instead of using type="text") might be contributing. I can't say for certain, though.
I'll try adding the quotes, but that shouldn't matter. The type=text might, let's see what happens.
That seems to have fixed it, any where you don't specify type get ignored. I suppose that explains why the type=number ones were working. Interesting that it only matters for repeating sections
You should include type=text on all inputs or you may get unintended results.
Well, that fixed the general issue of repeating fields not saving, but I'm still having issues with autocalc values. They include the part that is external to the repeating section, but not the part within the same row until the sheet is updated after opening it. Close and open and it's back to @{someotherstat} + 0 instead of + @{statonsamerow}