Skip to main content
Nintex Community Menu Bar
Answer

Set value of a single line text field from value of multiple line text field

  • October 14, 2015
  • 2 replies
  • 47 views

Forum|alt.badge.img+3

I have a multiple line text field in sharepoint list, its value is very long. I was trying to copy the first 50 letters from the multiple line field into a single line text field.

I created a simple workflow and have an action called Set Field in Current Item and it just doesn't work. It never pass that action.

 

Any idea on this issue.

 

Thank you in advance.

 

Alex

Best answer by christopheraucq

Hi Alex,

You need a Regular Expression Action followed by a Extract Substring from Start of String action and finally a Set Field in Current Item action.

1. Regular Expression to Remove HTML Tags contained in the Multiple Line text: Source

The pattern is: <[^>]*>

2. Extract Substring from Start of String to get 50 first characters from Multipel Line

3. Set Field in Current Item to set Single Line Text: Target

Hope it helps

Christophe Raucq

2 replies

Forum|alt.badge.img+9

Hi Alex,

You need a Regular Expression Action followed by a Extract Substring from Start of String action and finally a Set Field in Current Item action.

1. Regular Expression to Remove HTML Tags contained in the Multiple Line text: Source

The pattern is: <[^>]*>

2. Extract Substring from Start of String to get 50 first characters from Multipel Line

3. Set Field in Current Item to set Single Line Text: Target

Hope it helps

Christophe Raucq


Forum|alt.badge.img+3
  • Author
  • October 15, 2015

Christophe,

It is exact what I was looking for in the last a couple days. Thank you so much!

Alex