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

Disabled inputs don't show unit of measurement

When calculating my carrying capacities, I have the following input fields... <p>Light Load:</p> <input type="text" disabled="true" name="attr_Inventory_LightLoad_View" value="0 mg"/> <p>Medium Load:</p> <input type="text" disabled="true" name="attr_Inventory_MediumLoad_View" value="0 mg"/> <p>Heavy Load:</p> <input type="text" disabled="true" name="attr_Inventory_HeavyLoad_View" value="0 mg"/> <p>Over Head:</p> <input type="text" disabled="true" name="attr_Inventory_LiftOverHead_View" value="0 mg"/> <p>Off Ground:</p> <input type="text" disabled="true" name="attr_Inventory_LiftOffGround_View" value="0 mg"/> <p>Push/Drag:</p> <input type="text" disabled="true" name="attr_Inventory_PushDrag_View" value="0 mg"/> Unfortunately, the inputs default to "0" instead of "0 mg". When not disabled, they work fine. This problem persists even when setting the value with the API.
1436842853

Edited 1436843243
vÍnce
Pro
Sheet Author
Hi Charles. I think that disabled input fields default to number/math-only values. Confirmation anyone? UPDATE: Brian said: Autocalc fields strip out all non-numeric characters (which are not operators or functions). They are meant for math only. <a href="https://app.roll20.net/forum/post/1793627/#post-17" rel="nofollow">https://app.roll20.net/forum/post/1793627/#post-17</a>...