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 .
×

Select with matching radios not returning value

My spell range attributes in my spells repeating section is returning empty values into my roll template. <p class="sheet-1col sheet-left-align">Range:</p> <div class="sheet-11col">     <select class="sheet-2col" name="attr_SpellRangeIncrement">         <option value="Self" selected>Self</option>         <option value="Touch">Touch</option>         <option value="m">Meters</option>         <option value="km">Kilometers</option>         <option value="Planar">Planar</option>         <option value="Universal">Universal</option>     </select>     <input type="radio" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Self" />     <input type="radio" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Touch" />     <input type="radio" class="sheet-1col sheet-toggle sheet-expandable sheet-hidden" name="attr_SpellRangeIncrement" value="m" />     <input type="radio" class="sheet-1col sheet-toggle sheet-expandable sheet-hidden" name="attr_SpellRangeIncrement" value="km" />     <input type="radio" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Planar" />     <input type="radio" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Universal" />     <div class="sheet-10col sheet-collapsing">         <div class="sheet-3col">             <input type="text" class="sheet-6col" name="attr_SpellRangeB" value="0" />             <span class="sheet-5col" name="attr_SpellRangeIncrement"></span>             <p class="sheet-1col">+</p>         </div>         <select class="sheet-1col" name="attr_SpellRangeYDiceCount">             <option value="0" selected>0</option>             <option value="1">1</option>             <option value="2">2</option>             <option value="3">3</option>             <option value="4">4</option>             <option value="5">5</option>             <option value="6">6</option>             <option value="7">7</option>             <option value="8">8</option>             <option value="9">9</option>             <option value="10">10</option>         </select>         <input type="checkbox" class="sheet-hidden" name="attr_SpellRangeYDiceCount" value="0" checked/>         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="1" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="2" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="3" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="4" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="5" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="6" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="7" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="8" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="9" />         <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="10" />         <div class="sheet-2col sheet-collapsing">             <select class="sheet-12col" name="attr_SpellRangeYDiceSize">                 <option value="d2">d2</option>                 <option value="d3">d3</option>                 <option value="d4" selected>d4</option>                 <option value="d6">d6</option>                 <option value="d8">d8</option>                 <option value="d10">d10</option>                 <option value="d12">d12</option>                 <option value="d20">d20</option>                 <option value="d100">d100</option>             </select>         </div>         <div class="sheet-5col">             <p class="sheet-1col">+</p>             <input type="text" class="sheet-3col" name="attr_SpellRangeYBonus" value="0"/>             <span class="sheet-2col" name="attr_SpellRangeIncrement"></span>             <p class="sheet-1col">/</p>             <select class="sheet-3col" name="attr_SpellRangeX">                 <option value="1" selected>1</option>                 <option value="2">2</option>                 <option value="3">3</option>                 <option value="4">4</option>                 <option value="5">5</option>                 <option value="6">6</option>                 <option value="7">7</option>                 <option value="8">8</option>                 <option value="9">9</option>                 <option value="10">10</option>             </select>             <p class="sheet-2col">Lvs</p>         </div>     </div> </div> This roll template section: {{Range=@{SpellRangeIncrement}}}{{RangeQuantity=[[@{SpellRangeB}+[[floor(@{SpellClass}*@{SpellRangeYDiceCount}/@{SpellRangeX})]]@{SpellRangeYDiceSize}+[[@{SpellRangeYBonus}*@{SpellClass}]]]]}} Turns into this: {{Range=}} {{RangeQuantity=[[10+[[floor(@{Ogeu Xoizoti|Class_Wizard_Level}*0/1)]]d4+[[2*@{Ogeu Xoizoti|Class_Wizard_Level}]]]]}} SpellRangeIncrement and SpellRangeYDiceCount both fail to update based on the select list result.
If I remove both the radio buttons and the spans then it works, though I'd like to find a way to keep them in there for the sake of readability.
1460115627
Finderski
Pro
Sheet Author
Compendium Curator
Instead of using radio buttons try using checkboxes.  Because of the way roll20 works, checkboxes can double as radio buttons without the limitations of radio buttons (I do it quite a bit in the Savage Worlds Tabbed sheet).
I tried replacing the radio buttons with checkboxes, and the value still returns empty.  Even when I use "@{Ogeu Xoizoti|repeating_mage-1_SpellRangeIncrement}" from the chat box, it just returns an empty value.  (It recognizes that the attribute exists, but considers it empty).
1460132816
vÍnce
Pro
Sheet Author
I did a quick test with just a snippet for SpellRangeIncrement and it rendered fine using the default roll template. (only tested on Chrome) simplified code for test <p>Range:</p> <div>     <select name="attr_SpellRangeIncrement">         <option value="Self" selected>Self</option>         <option value="Touch">Touch</option>         <option value="m">Meters</option>         <option value="km">Kilometers</option>         <option value="Planar">Planar</option>         <option value="Universal">Universal</option>     </select>     <input type="radio" name="attr_SpellRangeIncrement" value="Self" />     <input type="radio" name="attr_SpellRangeIncrement" value="Touch" />     <input type="radio" name="attr_SpellRangeIncrement" value="m" />     <input type="radio" name="attr_SpellRangeIncrement" value="km" />     <input type="radio" name="attr_SpellRangeIncrement" value="Planar" />     <input type="radio" name="attr_SpellRangeIncrement" value="Universal" />     <span name="attr_SpellRangeIncrement"></span> </div> macro &{template:default}{{Range=@{selected|SpellRangeIncrement}}}
1460133203

Edited 1460133465
What is that @{selected|SpellRangeIncrement} voodoo in your macro? Tested that code.  Misinterpreted it.  I thought "selected" was relating somehow to the select control, forgot @{selected|} references a selected token. Is the fact that this is inside a repeating section causing problems?
1460133615
vÍnce
Pro
Sheet Author
Game Master said: What is that @{selected|SpellRangeIncrement} voodoo in your macro? I'm testing the macro outside of the sheet(not a sheet roll), so I linked a token to the sheet and added @{selected|..." to the macro to ensure I'm pulling the appropriate attribute.  I really wanted to isolate the attribute to ensure the value is there.  I often test each attribute like this if my macro is failing.  Just a way to troubleshoot to isolate the problem.
1460133893
vÍnce
Pro
Sheet Author
Repeating attributes won't show on the attributes list because they are hidden by the system. I try and pull the value in chat to verify they exist.  What is your fieldset class name?
1460134291
vÍnce
Pro
Sheet Author
As a quick test, I placed my code above within a <fieldset class="repeating_spells"> ... </fieldset> and was still succesful in rendering the appropriate result for the attribute.  So something else must be wrong.  ;-( code <fieldset class="repeating_spells"> <p>Range:</p> <div>     <select name="attr_SpellRangeIncrement">         <option value="Self" selected>Self</option>         <option value="Touch">Touch</option>         <option value="m">Meters</option>         <option value="km">Kilometers</option>         <option value="Planar">Planar</option>         <option value="Universal">Universal</option>     </select>     <input type="radio" name="attr_SpellRangeIncrement" value="Self" />     <input type="radio" name="attr_SpellRangeIncrement" value="Touch" />     <input type="radio" name="attr_SpellRangeIncrement" value="m" />     <input type="radio" name="attr_SpellRangeIncrement" value="km" />     <input type="radio" name="attr_SpellRangeIncrement" value="Planar" />     <input type="radio" name="attr_SpellRangeIncrement" value="Universal" />     <span name="attr_SpellRangeIncrement"></span> </div> </fieldset> macro &{template:default}{{Range=@{selected|repeating_spells_$0_SpellRangeIncrement}}}
1460138890

Edited 1460139109
Here is the entire code block I'm running.  This is just in a test campaign.  There are a few inputs above that supply the values that would be found elsewhere in the completed character sheet.  (Class levels, strike bonus, and if it's a hidden NPC) <div class="sheet-12col sheet-spells-mage-selector">     <input type="checkbox" class="sheet-toggle sheet-2col sheet-expandable" name="attr_Spells_MageSpellLevel1_Toggle" value="1" />     <p class="sheet-toggle sheet-2col">Level 1</p>     <div class="sheet-12col sheet-collapsing sheet-newline">         <fieldset class="repeating_mage-1">             <div class="sheet-12col">                 <input type="checkbox" class="sheet-toggle sheet-1col sheet-expandable" name="attr_Expanded" />                 <p class="sheet-toggle sheet-1col sheet-expandable"> </p>                 <div class="sheet-1col">                     <button type="roll" name="roll_Spellcast" value="&{template:5eDefault} {{name=@{SpellName}}} {{ShowUser=@{IsHiddenNPC}}} {{character_name=@{character_name}}} {{IsSpell=1}} {{spelllevel=1}} {{spellschool=@{SpellSchool}}} {{Verbal=@{SpellVerbal}}} {{Somatic=@{SpellSomatic}}} {{Material=@{SpellMaterialComponents}}} {{CastingTime=@{SpellCastingTime}}} {{TargetName=@{target|token_name}}} {{emote=@{SpellDescription}}} {{SpellClass=@{SpellClass}}} {{HighAleph=[[1d100cs<[[@{Skill_HighAlephI_Total}-(5*@{SpellHighAlephPenaltyLevel})+1]]cf>[[@{Skill_HighAlephI_Total}-(5*@{SpellHighAlephPenaltyLevel})]]]]}} {{Range=@{SpellRangeIncrement}}} {{RangeQuantity=[[@{SpellRangeB}+[[floor(@{SpellClass}*@{SpellRangeYDiceCount}/@{SpellRangeX})]]@{SpellRangeYDiceSize}+[[@{SpellRangeYBonus}*@{SpellClass}]]]]}} {{Targets=@{SpellTargeting}}} @{SpellStrike} @{SpellSave} {{SaveMod=[[?{Spell Save Mod|0}]]}} {{SaveEffect=@{SpellSaveEffect}}} {{Damage=[[@{SpellDamageB}+[[floor(@{SpellClass}*@{SpellDamageYDiceCount}/@{SpellDamageX})]]@{SpellDamageYDiceSize}+[[@{SpellDamageYBonus}*@{SpellClass}/@{SpellDamageX}]]]]}} {{DamageType=@{SpellDamageType}}}" class="sheet-12col"></button>                 </div>                 <input type="text" class="sheet-4col" name="attr_SpellName" placeholder="Spell Name"/>                 <p class="sheet-1col sheet-left-align">Reference:</p>                 <input type="text" class="sheet-2col" name="attr_SpellReference" />                 <input type="checkbox" class="sheet-2col sheet-toggle" name="attr_SpellHighAleph" value="1"/>                 <p class="sheet-2col sheet-toggle sheet-expandable2">High Aleph</p>                 <div class="sheet-1col sheet-collapsing2">                     <input type="text" class="sheet-12col" name="attr_SpellHighAlephPenaltyLevel" placeholder="1" />                 </div>                 <div class="sheet-12col sheet-collapsing">                     <div class="sheet-12col">                         <p class="sheet-1col sheet-left-align">School:</p>                         <select class="sheet-2col" name="attr_SpellSchool">                             <option value="Abjuration">Abjuration</option>                             <option value="Alteration">Alteration</option>                             <option value="Chronomancy">Chronomancy</option>                             <option value="Conjuration">Conjuration</option>                             <option value="Divination">Divination</option>                             <option value="Enchantment">Enchantment</option>                             <option value="Illusion">Illusion</option>                             <option value="Invocation">Invocation</option>                             <option value="Necromancy">Necromancy</option>                             <option value="Wild Magic">Wild Magic</option>                         </select>                         <p class="sheet-1col">Class:</p>                         <select name="attr_SpellClass" class="sheet-2col">                             <option value="@{Class_Abjurer_Level}">Abjurer</option>                             <option value="@{Class_Alterer_Level}">Alterer</option>                             <option value="@{Class_Bard_Level}">Bard</option>                             <option value="@{Class_Chronomancer_Level}">Chronomancer</option>                             <option value="@{Class_Conjurer_Level}">Conjurer</option>                             <option value="@{Class_Diviner_Level}">Diviner</option>                             <option value="@{Class_Enchanter_Level}">Enchanter</option>                             <option value="@{Class_Illusionist_Level}">Illusionist</option>                             <option value="@{Class_Invoker_Level}">Invoker</option>                             <option value="@{Class_Necromancer_Level}">Necromancer</option>                             <option value="@{Class_Sorcerer_Level}">Sorcerer</option>                             <option value="@{Class_Wildmage_Level}">Wildmage</option>                             <option value="@{Class_Wizard_Level}">Wizard</option>                         </select>                         <p class="sheet-2col">Casting Time</p>                         <input type="text" class="sheet-4col" name="attr_SpellCastingTime" />                     </div>                     <div class="sheet-12col">                         <div class="sheet-3col">                             <p class="sheet-6col sheet-left-align">Components:</p>                             <input type="checkbox" class="sheet-toggle sheet-3col" name="attr_SpellVerbal" />                             <p class="sheet-toggle sheet-3col">V</p>                             <input type="checkbox" class="sheet-toggle sheet-3col" name="attr_SpellSomatic" />                             <p class="sheet-toggle sheet-3col">S</p>                         </div>                         <input type="checkbox" class="sheet-toggle sheet-1col sheet-expandable" name="attr_SpellMaterial" />                         <p class="sheet-toggle sheet-1col">M</p>                         <div class="sheet-8col sheet-collapsing">                             <input type="text" class="sheet-12col" name="attr_SpellMaterialComponents" placeholder="200gp High Quality Bear Anus"/>                         </div>                     </div>                     <div class="sheet-12col sheet-collapsing">                         <p class="sheet-1col sheet-left-align">Range:</p>                         <div class="sheet-11col">                             <select class="sheet-2col" name="attr_SpellRangeIncrement">                                 <option value="Self" selected>Self</option>                                 <option value="Touch">Touch</option>                                 <option value="m">Meters</option>                                 <option value="km">Kilometers</option>                                 <option value="Planar">Planar</option>                                 <option value="Universal">Universal</option>                             </select>                             <input type="checkbox" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Self" checked/>                             <input type="checkbox" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Touch" />                             <input type="checkbox" class="sheet-1col sheet-toggle sheet-expandable sheet-hidden" name="attr_SpellRangeIncrement" value="m" />                             <input type="checkbox" class="sheet-1col sheet-toggle sheet-expandable sheet-hidden" name="attr_SpellRangeIncrement" value="km" />                             <input type="checkbox" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Planar" />                             <input type="checkbox" class="sheet-1col sheet-toggle sheet-hidden" name="attr_SpellRangeIncrement" value="Universal" />                             <div class="sheet-10col sheet-collapsing">                                 <div class="sheet-3col">                                     <input type="text" class="sheet-6col" name="attr_SpellRangeB" value="0" />                                     <span class="sheet-5col" name="attr_SpellRangeIncrement"></span>                                     <p class="sheet-1col">+</p>                                 </div>                                 <select class="sheet-1col" name="attr_SpellRangeYDiceCount">                                     <option value="0" selected>0</option>                                     <option value="1">1</option>                                     <option value="2">2</option>                                     <option value="3">3</option>                                     <option value="4">4</option>                                     <option value="5">5</option>                                     <option value="6">6</option>                                     <option value="7">7</option>                                     <option value="8">8</option>                                     <option value="9">9</option>                                     <option value="10">10</option>                                 </select>                                 <input type="checkbox" class="sheet-hidden" name="attr_SpellRangeYDiceCount" value="0" checked />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="1" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="2" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="3" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="4" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="5" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="6" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="7" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="8" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="9" />                                 <input type="checkbox" class="sheet-hidden sheet-expandable" name="attr_SpellRangeYDiceCount" value="10" />                                 <div class="sheet-2col sheet-collapsing">                                     <select class="sheet-12col" name="attr_SpellRangeYDiceSize">                                         <option value="d2">d2</option>                                         <option value="d3">d3</option>                                         <option value="d4" selected>d4</option>                                         <option value="d6">d6</option>                                         <option value="d8">d8</option>                                         <option value="d10">d10</option>                                         <option value="d12">d12</option>                                         <option value="d20">d20</option>                                         <option value="d100">d100</option>                                     </select>                                 </div>                                 <div class="sheet-5col">                                     <p class="sheet-1col">+</p>                                     <input type="text" class="sheet-3col" name="attr_SpellRangeYBonus" value="0" />                                     <span class="sheet-2col" name="attr_SpellRangeIncrement"></span>                                     <p class="sheet-1col">/</p>                                     <select class="sheet-3col" name="attr_SpellRangeX">                                         <option value="1" selected>1</option>                                         <option value="2">2</option>                                         <option value="3">3</option>                                         <option value="4">4</option>                                         <option value="5">5</option>                                         <option value="6">6</option>                                         <option value="7">7</option>                                         <option value="8">8</option>                                         <option value="9">9</option>                                         <option value="10">10</option>                                     </select>                                     <p class="sheet-2col">Lvs</p>                                 </div>                             </div>                         </div>                     </div>                     <div class="sheet-12col sheet-collapsing">                         <p class="sheet-2col sheet-left-align">Targeting:</p>                         <input type="text" class="sheet-10col" name="attr_SpellTargeting" />                     </div>                     <div class="sheet-12col sheet-collapsing">                         <p class="sheet-2col sheet-left-align">Damage:</p>                         <div class="sheet-2col">                             <input type="text" class="sheet-9col" name="attr_SpellDamageB" value="0" />                             <p class="sheet-3col">+</p>                         </div>                         <select class="sheet-1col" name="attr_SpellDamageYDiceCount">                             <option value="0" selected>0</option>                             <option value="1">1</option>                             <option value="2">2</option>                             <option value="3">3</option>                             <option value="4">4</option>                             <option value="5">5</option>                             <option value="6">6</option>                             <option value="7">7</option>                             <option value="8">8</option>                             <option value="9">9</option>                             <option value="10">10</option>                         </select>                         <select class="sheet-2col" name="attr_SpellDamageYDiceSize">                             <option value="d2">d2</option>                             <option value="d3">d3</option>                             <option value="d4">d4</option>                             <option value="d6">d6</option>                             <option value="d8">d8</option>                             <option value="d10">d10</option>                             <option value="d12">d12</option>                             <option value="d20">d20</option>                             <option value="d100">d100</option>                         </select>                         <div class="sheet-5col">                             <p class="sheet-1col">+</p>                             <input type="text" class="sheet-2col" name="attr_SpellDamageYBonus" />                             <input type="text" class="sheet-4col" name="attr_SpellDamageType" placeholder="Fire" />                             <p class="sheet-1col">/</p>                             <input type="text" class="sheet-2col" name="attr_SpellDamageX" />                             <p class="sheet-2col">Lvs</p>                         </div>                     </div>                     <div class="sheet-12col sheet-collapsing">                         <p class="sheet-2col">Save:</p>                         <select class="sheet-4col" name="attr_SpellSave">                             <option value="{{HasSave=[[0]]}}">None</option>                             <option value="{{HasSave=[[1]]}}{{Save=Paralyzation}}">Paralyzation</option>                             <option value="{{HasSave=[[1]]}}{{Save=Poison}}">Poison</option>                             <option value="{{HasSave=[[1]]}}{{Save=Death Magic}}">Death Magic</option>                             <option value="{{HasSave=[[1]]}}{{Save=Rods}}">Rods</option>                             <option value="{{HasSave=[[1]]}}{{Save=Staves}}">Staves</option>                             <option value="{{HasSave=[[1]]}}{{Save=Wands}}">Wands</option>                             <option value="{{HasSave=[[1]]}}{{Save=Petrification}}">Petrification</option>                             <option value="{{HasSave=[[1]]}}{{Save=Polymorph}}">Polymorph</option>                             <option value="{{HasSave=[[1]]}}{{Save=Breath Weapon}}">Breath Weapon</option>                             <option value="{{HasSave=[[1]]}}{{Save=Physical Magic}}">Physical Magic</option>                             <option value="{{HasSave=[[1]]}}{{Save=Mental Magic}}">Mental Magic</option>                             <option value="{{HasSave=[[1]]}}{{Save=Illusion}}">Illusion</option>                             <option value="{{HasSave=[[1]]}}{{Save=Psionics}}">Psionics</option>                             <option value="{{HasSave=[[1]]}}{{Save=Fear}}">Fear</option>                             <option value="{{HasSave=[[1]]}}{{Save=Horror}}">Horror</option>                             <option value="{{HasSave=[[1]]}}{{Save=Madness}}">Madness</option>                             <option value="{{HasSave=[[1]]}}{{Save=Special}}">Special</option>                         </select>                         <p class="sheet-3col">Save Effect:</p>                         <select class="sheet-3col" name="attr_SpellSaveEffect">                             <option value="No Save">No Save</option>                             <option value="Partial">Partial</option>                             <option value="Half">Half</option>                             <option value="Negates">Negates</option>                             <option value="Special">Special</option>                         </select>                     </div>                     <div class="sheet-12col">                         <p class="sheet-2col">Attack:</p>                         <select class="sheet-4col" name="attr_SpellStrike">                             <option value="{{HasAttackRoll=[[0]]}}">None</option>                             <option value="{{HasAttackRoll=[[1]]}}{{AttackRoll=[[1d20+@{UnarmedStrike}]]}}">Unarmed</option>                         </select>                                              </div>                     <div class="sheet-12col sheet-collapsing">                         <div class="sheet-12col">                             <h4>Spell Description</h4>                             <textarea class="sheet-12col sheet-3line" name="attr_SpellDescription"></textarea>                         </div>                         <div class="sheet-12col">                             <h4>Spell Effect</h4>                             <textarea class="sheet-12col sheet-3line" name="attr_SpellEffect"></textarea>                         </div>                     </div>                 </div>             </div>         </fieldset>     </div> </div> EDIT: I bolded the sections related to range to make them easier to pick out. EDIT 2: I tried putting your code into mine as a full replacement for the range section, and it still didn't pick up the range values.
1460141514
vÍnce
Pro
Sheet Author
So just to be clear, you cannot even get a value for SpellRangeIncrement or SpellRangeYDiceCount when you target them directly? macro example assuming row 0. &{template:default}{{Range=@{selected|repeating_spells_$0_SpellRangeIncrement}}} or &{template:default}{{Range=@{selected|repeating_spells_$0_SpellRangeYDiceCount}}} and how about if you use the sheet's roll template &{template:5eDefault}{{Range=@{selected|repeating_spells_$0_SpellRangeIncrement}}} or &{template:5eDefault}{{Range=@{selected|repeating_spells_$0_SpellRangeYDiceCount}}}
1460143373

Edited 1460150000
Using @{Ogeu Xoizoti|repeating_mage-1_$0_SpellRangeIncrement} returns the correct value.  How would I incorporate that into my roll button? Edit: I'm not sure where the $ came from... I've never had to use that to access items in a repeating section before.  The wiki says it should just be "repeating_mage-1_0_SpellRangeIncrement".
Even limiting my code to just the sample code you use with the addition of a roll button caused the same issue: <fieldset class="repeating_spells"> <p>Range:</p> <button type="roll" name="attr_RollRangeCheck" class="sheet-1col" value="Roll: @{SpellRangeIncrement}"></button> <div>     <select name="attr_SpellRangeIncrement">         <option value="Self" selected>Self</option>         <option value="Touch">Touch</option>         <option value="m">Meters</option>         <option value="km">Kilometers</option>         <option value="Planar">Planar</option>         <option value="Universal">Universal</option>     </select>     <input type="radio" name="attr_SpellRangeIncrement" value="Self" />     <input type="radio" name="attr_SpellRangeIncrement" value="Touch" />     <input type="radio" name="attr_SpellRangeIncrement" value="m" />     <input type="radio" name="attr_SpellRangeIncrement" value="km" />     <input type="radio" name="attr_SpellRangeIncrement" value="Planar" />     <input type="radio" name="attr_SpellRangeIncrement" value="Universal" />     <span name="attr_SpellRangeIncrement"></span> </div> </fieldset> On button click, output "Roll: " to the chat box.
1460150389
Kryx
Pro
Sheet Author
API Scripter
Just peeking in - haven't read the whole thread. Try removing <span name="attr_SpellRangeIncrement"></span> I believe having that there can reset the value for the sheet. I often put spans with names above the input that changes them as a result.
1460150440
vÍnce
Pro
Sheet Author
That does solve the problem... seems like a bug though
That worked! By moving the hidden checkboxes to the end of the section (though at the same nested level), the spans decided to shut up and play nice.  I also didn't have to change the visual layout of the character sheet. :D
Thanks for the help, guys.  :D
1460150927

Edited 1460150957
vÍnce
Pro
Sheet Author
Game Master said: That worked! By moving the hidden checkboxes to the end of the section (though at the same nested level), the spans decided to shut up and play nice.  I also didn't have to change the visual layout of the character sheet. :D That's good to know about using the new span feature. BTW: the $ was added when repeating row naming schema changed (December-ish I think)  If you want to access a repeating attribute directly you can us "repeating_foo_$X.." to refer directly to a repeating row's attributes or use the attribute's ID to access that attribute regardless of it's position.  It was an update to help impliment rearranging repeating rows. 
Crap.  I gotta rework a couple of my heroes unlimited scripts then.  TY for the heads up. :D
1460154228

Edited 1460154531
Spoke too soon.  The inputs won't hide the divs if they're placed after it.  The a ~ b only works if b is preceded by a, not just a sibling of a. input.sheet-expandable ~ div.sheet-collapsing{     display: none; } input.sheet-expandable:checked ~ div.sheet-collapsing{     display: inline-block; } EDIT: Corrected the issue by moving the checkboxes back to the front of the div and moving the select to the end.  It's a little unintuitive in it's workflow, but it works.
1460154543
vÍnce
Pro
Sheet Author
I just made a bug report.&nbsp; <a href="https://app.roll20.net/forum/permalink/3221272/" rel="nofollow">https://app.roll20.net/forum/permalink/3221272/</a> Please add any info you think might help.
1460154611
vÍnce
Pro
Sheet Author
Game Master said: Spoke too soon.&nbsp; The inputs won't hide the divs if they're placed after it.&nbsp; The a ~ b only works if b is preceded by a, not just a sibling of a. input.sheet-expandable ~ div.sheet-collapsing{ &nbsp;&nbsp;&nbsp; display: none; } input.sheet-expandable:checked ~ div.sheet-collapsing{ &nbsp;&nbsp;&nbsp; display: inline-block; } EDIT: Corrected the issue by moving the checkboxes back to the front of the div and moving the select to the end.&nbsp; It's a little unintuitive in it's workflow, but it works. Seems like it isn't working correctly. ;-)