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

Hidden repeating section not saving

So I'm currently trying to add a description section to a repeating section on my sheet. These descriptions can get pretty lengthy and also adds more descriptions as you invest more points into it, so I wanted to be able to show and hide the description. I've basically got everything working as I want it to, but the only problem is that when I hide the description again it deletes anything I had written rather than just hiding it. If anyone has any ideas as to why this might be, I would really appreciate it
This is what my sheet looks like and the code for it
okay, I have managed to make some fixes. Now I have the problem where the description will show and hide, but when you close and reopen the sheet you cannot see the descriptions you have added without adding another
1605108175
Andreas J.
Forum Champion
Sheet Author
Translator
George B. said: okay, I have managed to make some fixes. Now I have the problem where the description will show and hide, but when you close and reopen the sheet you cannot see the descriptions you have added without adding another All inputs, select, textarea and similar elements must have a name in the form of " attr_ nameofthing" to be properly saved on the sheet. It's listed as #1 on <a href="https://wiki.roll20.net/Building_Character_Sheets#Common_Mistakes" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets#Common_Mistakes</a> Did you fix this, or are you saying the description still disappears? Show the new code you have.
1605108344
GiGs
Pro
Sheet Author
API Scripter
You have a couple of inputs there that are missing names. Your checkbox input has a name, but the others dont. Values wont save if there isnt a name. By the way, never post code as screenshots. Post the code as actual text - that lets people helping you copy it and edit it, to show you the fixed version.&nbsp;
I've made some adjustments to a few mistakes here and there, but it seems that having two fieldsets do something to mess around with the whole add and modify button thing and that seems to be what's causing the issue
1605109598
GiGs
Pro
Sheet Author
API Scripter
I only see one fieldset in your screenshot. We cant help you fix a problem without seeing the code that is causing it. You can have two fieldsets in a sheet (or as many as you want). You cant have a fieldset inside another fieldset though.
This is what the code looks like now. I'm assuming that the second fieldset inside the first is what's causing the issue
I think I can rework the format of this bit to make the description work without the second fieldset so that's fine if it's impossible
1605110028

Edited 1605110292
Andreas J.
Forum Champion
Sheet Author
Translator
Oh, the problem is that you can't do Nested repeating sections in roll20. You can vote on the suggestion here: <a href="https://app.roll20.net/forum/post/2942465/nested-repeating-sections" rel="nofollow">https://app.roll20.net/forum/post/2942465/nested-repeating-sections</a> I updated the wiki documentation to now mention it here: <a href="https://wiki.roll20.net/Building_Character_Sheets#Definition_.26_Restrictions" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets#Definition_.26_Restrictions</a>
Thanks Andreas. I've added my vote. I shall now focus my attention on the other complicated stuff
1605113364
Andreas J.
Forum Champion
Sheet Author
Translator
Good that it got figured out. Remember to check the documentation, as most other things are documented or linked to on the main article: <a href="https://wiki.roll20.net/Building_Character_Sheets" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets</a> And it got just better thanks to your question :)