Participating Frequently
November 10, 2022
Answered
Auto Fill Doc ads "$" before a number and breaks my calculation. Can this be fixed?
- November 10, 2022
- 4 replies
- 3036 views
I am trying to create a payment schedule change document and have the field auto-fill from our CRM platform. I do not have the ability to change how the CRM exports values.
In the preview of documents, the CRM only brought in a number, e.g. 5000. In the live version of the same export, it brings in a "$" or $5000 into the field.
This "$" results in my calculation returning NaN
The calculation I am using is:
v1 = getField("JobBalanceDueAmt").value;
v2 = getField("Adjustment").value;
event.value = v1 - v2;
How can I make the calculation ignore the currency symbol and return an answer that is not NaN?
Thank you for any help!
Best,
-Anthony
