strido Posted October 12, 2016 Share Posted October 12, 2016 My customer is sending data to us that we're populating on our PDF. One of the bits of data is a rate percentage - 2.20. They would like that trailing zero to populate on the PDF and I can confirm that it is in their data. How would I keep that? When I preview it from my template on the desktop it's alright, but when its processed from the server the zero gets dropped. Is there a javascript rule I'm missing? (Call the field RateX) Quote Link to comment Share on other sites More sharing options...
step Posted October 12, 2016 Share Posted October 12, 2016 (edited) I don't know why the data would preview a certain way and compose another. It sounds like the data string is being converted to a number. Are you using a rule to return it? If so, what is the rule? You could explicitly specify that the result should be a string: return Str(Field("RateX")); Or you could use the FormatNumber function: return FormatNumber('0.00', Field("RateX")); Edited October 12, 2016 by step Forgot a closing paren Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.