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

dynamic input

Hello, I am creating a character sheet and I have a life points system like white wolf (several points by level). The number of square depends of one  characteristic. How can I show only n square by line  automatically or hide the useless square ? Thanks             <div class="sheet-niveaublessure">                 <span class="sheet-niveaublessurespan">Pleine forme : </span>                 <input type="checkbox" class="sheet-pv1" name="attr_pvpf1" />                 <input type="checkbox" class="sheet-pv2" name="attr_pvpf2" />                 <input type="checkbox" class="sheet-pv3" name="attr_pvpf3" />                 <input type="checkbox" class="sheet-pv4" name="attr_pvpf4" />                 <input type="checkbox" class="sheet-pv5" name="attr_pvpf5" />             </div>            For exemple I have 2 in the characteristic and I want to hide the 3 last checkboxes. Thanks a lot for your help
1589980137
Andreas J.
Forum Champion
Sheet Author
Translator
Pretty sure more than one World of Darkness character sheet has an example of what you want to do, you could try out the official one CoD, the Vampire 5e and some other popular sheets to find if they use it, and then track down the sheet code in the roll20 repository.
Thanks a lot Andreas, I m going to look at it