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

Input Issue

1415522038
Falcon
Pro
Sheet Author
I am trying to pass a @{attribute} name as a macro (numbers for a range table 15 / 24 / 55 / 100 for example). But when I pass that attribute to an INPUT statement using disabled it divides all the numbers up instead of just passing the text. What can I do to fix this - I just want to pass the text - not have it do math.
1415527385
Finderski
Plus
Sheet Author
Compendium Curator
I don't know if this would work, but have you tried replacing the / with / Sorry, had to use the "code" formatting, otherwise, the forums just turned it into a / again. Not sure if that would work, but don't know why it wouldn't.
Use | instead of /
1415566909
Falcon
Pro
Sheet Author
That didn't solve the problem either. Here is the HTML code: <td style="padding-top: 8px"> <select style="width: 60px;" name="attr_Range_INC"> <option value="-" selected>-</option> <option value="A">A</option> <option value="8|20|60|125">B</option> <option value="HAPPY 3">C</option> <option value="D: 20 / 60 / 120 / 300">D</option> <option value="E: 50 / 100 / 500 / 1K">E</option> <option value="F: 100 / 250 / 1K / 3K">F</option> </select> </td> Then the output box is: <td colspan=3><input type="text" disabled style="width 200px" name=attr_Range_Table" value="@{Range_INC}"></td> In the above example this is my output Select "-" get "-" Select "A" get "A" Slected "B" get "82060125" Select "C" get "3" Select "D" get whatever 20/60/120/300 is "0.0003423" It's like it ignores the letters when there is both numbers and letters in an attribute. It's not HTML, it has something to do with the code in Roll20 when the attribute gets passed.
1415567008
Falcon
Pro
Sheet Author
GV - All I see is a / symbol
1415571208
Finderski
Plus
Sheet Author
Compendium Curator
Weird. When I entered it, it was the & 47 ; (without spaces) and it showed up fine. I didn't even check to see what happened after I submitted. Here's a URL for the different HTML codes for different forms of punctuation, etc: <a href="http://www.ascii.cl/htmlcodes.htm" rel="nofollow">http://www.ascii.cl/htmlcodes.htm</a>
1415572666
Falcon
Pro
Sheet Author
I went a different route. Thanks guys.
1415600929
The Aaron
Roll20 Production Team
API Scripter
GV: you have to put it in as &amp;amp;#47; to have it show up right in the forum.
1415604341
Lithl
Pro
Sheet Author
API Scripter
The Aaron said: GV: you have to put it in as &amp;#47; to have it show up right in the forum. And then not edit the post. (or re-write it when editing) =P
1415653208
The Aaron
Roll20 Production Team
API Scripter
yup!
1415665427
Finderski
Plus
Sheet Author
Compendium Curator
Cool. I'll try to remember that. :)