Skip to main content
Nintex Community Menu Bar

Concatenate 2 form variables

  • October 22, 2014
  • 4 replies
  • 796 views

Forum|alt.badge.img+4

Hi,

 

Is there a way we can concatenate 2 form variables please. One form variable is a String and another a numeric (I can make that a string too). However, I could not find any option to concatenate both of them to give me a single string. Any leads on how to achieve this please. Thanks

 

Sam

4 replies

Forum|alt.badge.img+12
  • October 22, 2014

You could use a calculated field to easily achieve this.  Simply build the formula to be something like {Var1}{Var2} and they will be concatenated.  There are other ways to do it, but this way will be visual on the form itself.


Forum|alt.badge.img+4
  • Author
  • November 11, 2014

Hi mmatsako,

your suggestion worked perfectly. thanks a lot. appreciate it.


Forum|alt.badge.img+7
  • March 30, 2017

For some reason, I could not get Mike's way to work. What did work for me:

Var1 + " - " + Var2

Did this in order to have values separated by a " - "


Forum|alt.badge.img+9
  • Novice
  • August 11, 2017

This is the one that worked for me too. I wanted them to be concatenated without any dashes or spaces, so I just added a calculated field on the form and used the named controls. 

Var1+Var2