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

How do I show entered values in a character sheet in a subsequent ?

hi I have a table in my charactersheet that people add their weapons in along with their assocated stats. In another part of the character sheet I would like to use these enered values in the sheet. Here is what I am trying to do: in the character sheet there is a textfield like so: <input type="text" name="attr_w1name" class="sheet-four"> <input type="text" name="attr_w2name" class="sheet-four"> <input type="text" name="attr_w3name" class="sheet-four"> <input type="text" name="attr_w4name" class="sheet-four"> In another part of the character sheet I would like to use the text entered in this input like so: <select name="attr_wepsel" class="sheet-four">                         <option value="1">"@{w1name}"</option>                         <option value="2">"@{w2name}"</option>                         <option value="3">"@{w3name}"</option>                         <option value="4">"@{w4name}"</option> </select> However the select button shows the actual code and not the reference. What piece of wizardry am I missing? Thanks
When you tell one input (Call it Input-A) to draw from that other input (Input-B) or this other input (Input-C), the program draws the value.  So, you would need to make the value of the select options "@{w1name}", and change the other parts to something else. For example: <select name="attr_wepsel" class="sheet-four">                         <option value="@{w1name}">Primary Weapon</option>                         <option value="@{w2name}">Secondary Weapon</option>                         <option value="@{w3name}">Back-Up Weapon</option>                         <option value="@{w4name}">Back-Up to the Back-Up</option> </select>
1438383570
Lithl
Pro
Sheet Author
API Scripter
CPP is correct on how to get the input values as the  values  for the options. However, there is no way to get the input values as the labels  for the options.
Brian said: CPP is correct ... I'm marking this date on the calender...
1438394169
Lithl
Pro
Sheet Author
API Scripter
Coal Powered Puppet said: Brian said: CPP is correct ... I'm marking this date on the calender... calendar* =P
Brian said: CPP is correct on how to get the input values as the  values  for the options. However, there is no way to get the input values as the labels  for the options. Rats. Ok thatnks everyone. -- Back to the drawing board