Ui-only field like this:

Merge Syntax like this:

{{$Model.scheduledInitialAppointments.data.0.Percent}}

Expected Result in runtime:

47%

Actual Result in runtime:

0.4727272727272727

Merge Syntax like this:

{{$Model.scheduledInitialAppointments.data.0.Percent}}

Expected Result in runtime:

47%

Actual Result in runtime:

0.4727272727272727

Matt Sones, Champion

- 31,954 Points

Posted 4 years ago

Matt Sones, Champion

- 31,954 Points

Anyone know a way around this? the long strings of numbers are getting really ugly...

Matt Sones, Champion

- 31,954 Points

I suppose I could ROUND(value*100) to all my percent fields, and return them as TEXT instead with + '%'

Rob Hatch, Official Rep

- 44,568 Points

Are you sure that your "percent" field is not a string field? If it is you just need to mulply it by 1 and then the percentage rendering tools in the formula will work.

Matt Sones, Champion

- 31,954 Points

Rob,

Take a look at the image in the original post. The "Percent" field is a formula field with type Percent.

Length 3, Decimals 0.

Take a look at the image in the original post. The "Percent" field is a formula field with type Percent.

Length 3, Decimals 0.

Rob Hatch, Official Rep

- 44,568 Points

Ok, I misunderstood. I thought that your formula was: {{$Model.scheduledInitialAppointments.data.0.Percent}} (Which is a valid formula btw) I guess you are using the merge syntax to show the field on your page, and in that case you are right - we are not processing the rendering suggested by the metadata override. This has been noted...

Matt Sones, Champion

- 31,954 Points

Thanks, Rob...

Any thoughts on when this might be updated? I have to weigh the work of changing all my percent formula fields to text fields with ROUND(old_percent_formula) + '%'... or waiting until the fix...

Any thoughts on when this might be updated? I have to weigh the work of changing all my percent formula fields to text fields with ROUND(old_percent_formula) + '%'... or waiting until the fix...

Matt Sones, Champion

- 31,954 Points

As an aside... being able to use global merge syntax in formulas is awesome. :)

- 5,376 Points

I am experiencing this issue as well. Trying to use a Ui-Only percent field in the title of a graph and the meta data is not being honored. Any update on this?