Anuka
Scholar

Insert NewLine in Text variable

Jump to solution

Hi All, 

 

Someone could you please tell me me how can I create Text variable which is contains multiple string values separated with NewLines?

Unfortunately, I only need a variable because I would like to save this value into the text field.  

 

Example:

Names= Tom+NewLine+Rose+NewLine ... etc ?

 

Thank is advance and have a wonderful day 🙂

 

Regards, 

Anuka

 

Labels: (1)
0 Kudos
Reply
4 Replies
KyleDierking
Nintex Employee
Nintex Employee

Re: Insert NewLine in Text variable

Jump to solution

You can use this expand button in the variable form so that the "Value" field becomes a multiline textbox. This way you can just put the next string on a new line. A "Send Value" action will send this variable with the newlines included.

KyleDierking_0-1655823669383.png

 

 

If you need to create the variable using a "Create Variable" action, that form also allows you to expand the textbox.

 

0 Kudos
Reply
Anuka
Scholar

Re: Insert NewLine in Text variable

Jump to solution

Dear Kyle, 

 

Thank you for your answer and hint 🙂

 

I wanted to get the below result:

Anuka_0-1655890995937.png

 

And unfortunately, I couldn't find the solution this case and having the below result 😞

Anuka_1-1655891163576.png

 

Thank you in advance and have a nice day

Regards, 
Anuka
 

0 Kudos
Reply
KyleDierking
Nintex Employee
Nintex Employee

Re: Insert NewLine in Text variable

Jump to solution

I assume you are trying to build this list. 

 

You will need to use the "Join" formula to build your list. Create a variable called "NewLine" that is just a newline character (in Notepad hit the enter button then copy the text and paste into the variable form). Then you can use the join formula like this: 

 

[?Join([%Beer_Names],[%Newline],"Hopsecutioner")]

 

KyleDierking_1-1655924117652.png

 

Reply
Anuka
Scholar

Re: Insert NewLine in Text variable

Jump to solution
Dear Kyle,

Thank you for your time and solution 🙂

Regards,
Anuka
0 Kudos
Reply