Concat Currency with Text - InfoPath Dev
in

InfoPath Dev

Concat Currency with Text

Last post 04-03-2013 06:06 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-02-2013 07:11 AM

    Concat Currency with Text

    Hi,

     I want to concatenate a field containing currency formatting with text in a Rich Text Box.

    field1= $50,000.00

    Text box formula --> concat("The amount is ", field1, " and it must be expended prior to March 01, 2014.")

     This formula returns this in the text box... The amount is 50000 and it must be expended prior to March 01, 2014.

    I want this to show up (with currency formatting)... The amount is $50,000.00 and it must be expended prior to March 01, 2014.

     Thanks for the help!

     JF

  • 04-03-2013 06:06 AM In reply to

    field1 might be displayed as currency on its own but it's stored as 50000 not $50,000.

    You could try something like:

    concat("The amount is $", substring(field1, 1, 2), ",", substring(field1, 3, string-length(field1)))


    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


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