Forumla Limitation To 2 Decimal Places?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodom2
    Senior Member
    • Jan 2020
    • 198

    Forumla Limitation To 2 Decimal Places?

    Good Morning,

    Im using the concatenate feature to auto generate a description for me. However the decimal places isnt limited to 2. Is there a way to limit it in the concatenate formula? Below is my formula.

    metaTagDescription = string\concatenate('FINANCING AVAILABLE!!! Get your ',name,' (',manufacturerPN,') made in the USA by ', brandName ,' for as little as $', listPrice, '!!!');

  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Hi dodom2, can't help you cause I'm new to this. How do you use the concatenate feature? There was two field (e.g LAST NAME, First Name - Mobile Phone) that I wanted to do this but failed to and broke my EspoCRM at one point. Would appreciate some guidance.

    Did you know of an easier way or you did the same way as eymen.elkum did?
    Here was my failure thread: https://forum.espocrm.com/forum/gene...te-concatenate

    ---

    Edit: Figure out how to do it. See this thread here:
    Hello All! Im trying to auto create a amazon url. For example I want https://amazon.com/dp/[[AMAZON ASIN]]. This would look something like https://www.amazon.com/dp/B07FQ24C67. However I can't seem to get it to concatenate. the field Im trying to store the value to is "url" and the ASIN is store in
    Last edited by esforim; 03-04-2020, 12:34 AM.

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hi Dustin,
      Perhaps you have to use this formula condition:
      Code:
      number\format(VALUE, [DECIMALS], [DECIMAL_MARK], [THOUSAND_SEPARATOR]).
      .
      Read more about it here https://github.com/espocrm/documenta...d#numberformat.

      Comment

      Working...