This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to add a space in a Concat expression

Good Morning!

Stupid question time......

I cannot seem to figure out the right syntax for this following concat statement.

${concat(entity.UserOptions.LocationSubType_c.DisplayLabel, ' ', entity.UserOptions.LocationNumber_c.DisplayLabel)}

What I am trying to do is to grab the results of two user selections and contat them into a string with a space between them.

Example
UserOptionOne: TEST
UserOptionTwo: 999

Desired result: TEST 999

The problem is the space, the statement does not like the empty string.

So the question is, what syntax do I use to add the space between the two data statements?

Thank You,
Chris

  • Verified Answer

    +1

    Whelp, this looks like user error.
    I thought that the field I was concat into was a String but for some reason it was an Integer field.
    Once the filed was changed to a String it started to work, image that.