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

Change text in select option?

1459938765
Havoc
Sheet Author
API Scripter
Let's say that I want to change the text in the select options, based on another input. Is there a way? <input type="text" name="attr_Dicipline1Name"/> <select> <option value="@{Dicipline1Value}">???</option> </select>
1459954740
Finderski
Pro
Sheet Author
Compendium Curator
The only way I could think of would be to have multiple select options and hide/show the correct one based on the other input field.  But without javascript, I don't believe you can dynamically build a select option...and sheet workers, while Javascript, doesn't include the capability to do what you're asking...
1459963530
Lithl
Pro
Sheet Author
API Scripter
Correct, there is no means to alter an option label. As GV says, you could have multiple select boxes and swap around which one is visible, but that may not be a viable option depending on what you're trying to do.
1459968154
Havoc
Sheet Author
API Scripter
Not viable. This is for oWoD (vampire 20th) sheet. I needed to changes names in the select for 3 talents, 3 skills, 3 knowledges and at least 6 disciplines. Ok, thanks. "Discipline 1", "Discipline 2" etc. it is.