Display number field value as text - InfoPath Dev
in

InfoPath Dev

Display number field value as text

Last post 08-02-2012 06:05 AM by ebonymb. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-01-2012 02:11 PM

    Display number field value as text

    On submit, field Confirmation renders the following text "Manual Debit Total $ [TOTAL]" where [TOTAL] is a reference to the field TOTAL. 

    The problem is, when the total is rendered in the confirmation field, it is displayed in scientific value.  For example, field TOTAL displays 3639.10 but when the confirmation field is populated, it shows "Manual Debit Total $3639.100000000003"  I have figured out how to ensure the total displays correctly in the SharePoint list by creating a separate column, Totalv2, calculate per the following equation:  =Total*100/100. 

     Is there formula to display the total in the confirmation field as a text value?

  • 08-01-2012 02:53 PM In reply to

    Re: Display number field value as text

    is your confirmation field set as text? I played with this a bit and was able to find a simple solution I had to fields, field1 was a number, set to double and currency. field2 was plain text. I set default value of field2 to = this

    concat("$", substring-before(field1, "."), ".", substring(substring-after(field1, "."), 1, 2))

    give it a try and let me know

    Kind regards,
    Larry
  • 08-02-2012 06:05 AM In reply to

    Re: Display number field value as text

    Worked like a charm.  Thanks!

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.