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

[Sheet Building] Requesting help to solve this peculiar dilemma (Involves Repeating sections)

1481112527

Edited 1481112784
Greetings everyone, I have been working on my bastardized version of one of the old Pathfinder sheets, and I have been aiming to improve the Spells section. However, I ran into a peculiar issue tonight. I have it so there are 2 check boxes in the repeating section for spells. One shows extra detail, revealing several boxes for additional information for the spell. The other is the default "Description" button that reveals the description box. These work perfectly. That is, until you try to minimize/hide them. I can hide the description boxes easily, they present no issues. But when I uncheck the "Details" boxes, after unchecking 3 of them, all unchecked boxes in that repeating section remark themselves. Does anyone have any ideas/workarounds as to how I can overcome this issue? I currently have it isolated in only one additional section of the sheet, so it is not harming any of the players at this time, but I would really love to roll out a fixed version to all repeating spell sections. I'm not the greatest at explaining, but I hope that explains it. I am of course, happy to answer queries. The code in question is posted below. I believe the offending lines are in regards the the Checkboxes, but I cannot find for the life of me, a reason why they are being so offensive. Thank you to anyone who can assist. (EDIT: Formatting cleanup) <b>Details</b> <input type="checkbox" class="sheet-section-show" title="repeating_lvl-10-spells_$X_misc-show" name="attr_spellmisc-show" value="0" style="opacity:1;width: 16px;height: 16px;position: relative;top: 0px;left: 0px;margin: 0px;cursor: pointer;z-index: 1;"/><span></span>                          <div class="sheet-section" title="repeating_lvl-10-spells_$X_misc" name="attr_spellmisc"> <span class="sheet-table-data-center" style="width:15%;"><input title="repeating_lvl-10-spells_$X_Casting-time" type="text" name="attr_repeating_lvl-10-spells_X_casting-time" value="Casting Time"></span> <span class="sheet-table-data-center" style="width:20%;"><input title="repeating_lvl-10-spells_$X_Components" type="text" name="attr_repeating_lvl-10-spells_X_components" value="Components"></span> <span class="sheet-table-data-center" style="width:20%;"><input title="repeating_lvl-10-spells_$X_descriptors" type="text" name="attr_repeating_lvl-10-spells_X_decriptors" value="Decriptors"></span> <span class="sheet-table-data-center" style="width:20%;"><input title="repeating_lvl-10-spells_$X_targets" type="text" name="attr_repeating_lvl-10-spells_X_targets" value="Targets"></span> <span class="sheet-table-data-center" style="width:15%;"><input title="repeating_lvl-10-spells_$X_url" type="text" name="attr_repeating_lvl-10-spells_X_url" value="Spell URL"></span> <span class="sheet-table-data-center"><button style="font-size:100%;" title="repeating_lvl-10-spells_$X_url_roll" type="roll" value="/em casts [@{repeating_lvl-10-spells_X_name}](@{repeating_lvl-10-spells_X_url})" name="repeating_lvl-10-spells_X_url_roll"></button></span> <span class="sheet-table-data-center" style="width:10%;"> <select title="repeating_lvl-10-spells_$X_d" name="attr_d"> <option value="Yes">Dismissable</option> <option value="No" selected>Non-Dismissable</option> </select> </span>  <b>Description</b> <input type="checkbox" class="sheet-section-show" title="repeating_lvl-10-spells_$X_description-show" name="attr_description-show" value="0" style="opacity:1;width: 16px;height: 16px;position: relative;top: 0px;left: 0px;margin: 0px;cursor: pointer;z-index: 1;"/><span></span>     <textarea class="sheet-section" title="repeating_lvl-10-spells_$X_description" name="attr_description"></textarea> </div>
Off hand, I would try changing the value of the checkbox from "0" to "1". The value is the positive check, so with a it checked, it's reading as "0" and closed it is reading as "0". Don't take me at face value though, I just woke up and haven't had my coffee yet.
You, my good sir, are a legend. It's fixed and works perfectly now! Cheers.