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

Problem with using the value of one input text in another

1510604675
Matthew C
Pro
Sheet Author
I am using the value of an input field, for the sake of an example let's say it is name=text and in the character sheet I fill in donut and then later in the character sheet we have name=showtext value=@{text} (yes I did not use any " because it is pseudo code) When the name is donut, it shows donut, but if the name is donut4 it just shows 4 and if it is 2-6 it shows -4. So what I am wondering is it possible for it to simply put EXACTLY what I put in instead of trying to interpret it?
1510609701
Lithl
Pro
Sheet Author
API Scripter
Try making the second input readonly, instead of disabled. Disabled fields are autocalc, and will attempt to apply math to their values.
1510610937
Matthew C
Pro
Sheet Author
Thanks bu the problem with this is I had value="Show @{Name}" and value="Hide @{Name}" Which works perfectly without numbers the readonly actually outputs the @{Name} rather than the actual value of it, I am curious if this can be done r if I need some kind of workaround (the problem is that it is also a centered text (meaning splitting this into 2 inputs (my current workaround) does not fully work either :(
1510615985
Matthew C
Pro
Sheet Author
Hmm, I have found a workaround that seems to work value="* Show @{Name} *" by inserting the asterisks there it prevents the calculations, not the best option maybe, but it works for now :s