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

Using Attributes from a repeating section to create a list for a selection outside of the repeating set

Hi All, I was wondering if anyone could help me. I'm trying to create a dynamic select list. I have a repeating set that allows the character to add a Spell with each spell having its own name. On load of the character sheet, I want to pull all the names of the spells and their row ID's from the repeating section and set up a new select element whose value is the row ID and the content it displays is the name of the spell. Is that possible or am I trying to do something that Roll20 doesn't support? Thanks Owen
1588418228

Edited 1588418383
GiGs
Pro
Sheet Author
API Scripter
This part is absolutely not possible on roll20, unfortunately: On load of the character sheet, I want to pull all the names of the spells and their row ID's from the repeating section and set up a new select element whose value is the row ID and the content it displays is the name of the spell. Because of the restrictions roll20 enforces, we cannot dynamically create selects and their options.  The only thing we can do is change the contents of attributes, which can change the values of inputs, spans, textareas, but the contents of selects are fixed at design-time.
GiGs said: Because of the restrictions roll20 enforces, we cannot dynamically create selects and their options.  Thanks, GiGi. My experimentation was leading me to that conclusion but I thought I would ask just in case I was missing something. It's nice to have it confirmed by someone that knows what they are doing :) Thankyou!