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 Fieldset

I have this issue while trying to do a roll. I have a repeating_active field already made and the repitem in that field is finalized. In the button for the rolling an attack in this case, if I change it from    {{name=@{repeating_active_$id_skill_name}}}  to  {{name=@{repeating_active_skill_name}}}  I find that i get a different error which is the second image. The attr_skill_name in the span does reference the name correctly, just to point out. The only difference between this repeating_active and the original is that this repeating_active is filtered by type_is_* where * is the skill type. For the example I am showing, it is type_is_attack How do I reference the skill name to make it display correctly in the chat when I roll it?             <!-- ATK -->             < div class = "tech-accordion" >               < input type = "checkbox" id = "tech-atk-toggle" class = "tech-toggle" />               < label for = "tech-atk-toggle" class = "tech-box" >                 < span class = "tech-label" > ATK </ span                 >< span class = "tech-arrow" > ▼ </ span >               </ label >               < div class = "tech-accordion-panel" >                 < div class = "tech-list atk" >                   < fieldset class = "repeating_active" >                     <!-- flags FIRST so CSS can see them -->                     < input                       type = "hidden"                       name = "attr_skill_finalized"                       value = "0"                     />                     < input type = "hidden" name = "attr_type_is_attack" value = "0" />                     < input type = "hidden" name = "attr_type_is_save" value = "0" />                     < input type = "hidden" name = "attr_type_is_other" value = "1" />                     <!-- compact tech card -->                     < button                       type = "roll"                       class = "tech-mini"                       value = "&{template:default} {{name=@{repeating_active_$id_skill_name}}} {{roll=[[1d20 + @{spell_attack_bonus}]]}} {{Attack Bonus=@{spell_attack_bonus}}}"                     >                       < span                         class = "tech-mini-name"                         name = "attr_skill_name"                       ></ span >                     </ button >                   </ fieldset >                 </ div >               </ div >             </ div >
1757464326
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
When referring to attributes from within the button in a repeating section, you don't use the repeating prefix. The roll20 backend handles referencing to the same row. So your button should just be: <button type="roll" class="tech-mini" value="&{template:default} {{name=@{skill_name}}} {{roll=[[1d20 + @{spell_attack_bonus}]]}} {{Attack Bonus=@{spell_attack_bonus}}}" > <span class="tech-mini-name" name="attr_skill_name" ></span> </button>
I made a mistake in explaining. The "No Attribute found" image is when using  {{name=@{skill_name}}} .  Which I know that exist because where I have created and finalized a skill it uses the name. Also my skill summary uses it.   
1757467530
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
ah, you only have an attribute backed span for the skill name. Repeating sections don't play well with attribute backed spans. Add a hidden input copy of the skill name attribute anywhere in the repeating item: <input type="hidden" name="attr_skill_name">
Works now, appreciate it.