Skip to main content
Solved

Value in base percent field displays zero in form

  • April 9, 2024
  • 2 replies
  • 31 views

Forum|alt.badge.img+1

Looking for help: My base has a percent field with the value 25%. When I prefill and display the field in a form, 0% is what is displayed.

Base percent field settings

Base percent field value

Prefill formula

Form display

Form field settings

 

Best answer by Sho

Interface seems to treat the percent field as an integer.
For 25%, 0.25 must be multiplied by 100.

&'prefill_PERCENT%20COMPLETE='&{PERCENT COMPLETE}*100

2 replies

Forum|alt.badge.img+21
  • Inspiring
  • 560 replies
  • Answer
  • April 10, 2024

Interface seems to treat the percent field as an integer.
For 25%, 0.25 must be multiplied by 100.

&'prefill_PERCENT%20COMPLETE='&{PERCENT COMPLETE}*100

Forum|alt.badge.img+1
  • Author
  • New Participant
  • 1 reply
  • April 10, 2024

Interface seems to treat the percent field as an integer.
For 25%, 0.25 must be multiplied by 100.

&'prefill_PERCENT%20COMPLETE='&{PERCENT COMPLETE}*100

Thank you, Sho!