Calculation in Floating Field adds unwanted line feed

rgfischerjr

21-05-2015

Using Livecycle Designer ES4  w/ Javascript

I have a numeric field PurchasePrice and a Floating Field DepositAmt that is calculated using this.rawValue = PurchasePrice.rawValue * .3;

In Design View, the line that includes DepositAmt looks like this:

  •     30% or {DepositAmt} with this signed agreement as a deposit;

In Preview the line looks like this:

  • 30% or

        with this signed agreement as a deposit;

And after a number is entered into PurchasePrice it looks like this:

  • 30% or $1,000.00

     with this signed agreement as a deposit;

I have other lines with "30% to include..." and no return is added.

I have deleted the line and retyped it

I have deleted the Floating Field and recreated it

I have tried FormCalc with the same result

Thanks in advance for any assistance!

R

Accepted Solutions (1)

Accepted Solutions (1)

jsanborn58

22-05-2015

I have had assorted issues with floating fields, mainly with extra spaces being placed before and after a currency field. For example, I had an extra space between the floating field and punctuation that immediately followed.

If you select the field type as "Numeric Field", then set the pattern to the following, it should help. Be sure to take out the spaces before and after the floating field, as you are adding them to the pattern.

     30% or{DepositAmt}with this signed agreement as a deposit

     num{('$zzz,zzz,zzz,zzz,zz9.99' ')}

Answers (2)

Answers (2)

SI_MSD7

17-05-2017

I'm having the same issue with floating fields adding extra spaces before and after the currency. The issue is that I need to show parenthesis before & after the currency so the extra spaces are problematic.

I'm getting something like ( $95,000 ) instead of ($95,000). Or if I end a sentence with a currency floating field, I get a space just before the punctuation. So something like: "...the cost for the trip is $325.00 !")

Is there a fix to this issue? It only happens with numeric floating fields for some reason.