Solved

Text string with a single space

  • 7 October 2021
  • 1 reply
  • 201 views

I would like to use the Modify String task to replace a single space with an empty string.

If I use an empty string variable when specifying the replacement string I can successfully run this using Workflow Testing.

However, I am unable to publish this because it considers a single space as an unconfigured action.

The same issue occurs if I first Create a Test String and populate it with a space and then use that variable in the Modify String task (except that the error is now for the Create a Test String task).

I am wanting to do this on a Component Workflow so I am unable to get around this with form variable functions.

I am trying to avoid using the Apply a Regular Expression task because they require additional actions to concatenate the character array output.

Is there any way to get this to work with the Modify String task?

icon

Best answer by leighburke 7 October 2021, 23:51

View original

1 reply

Userlevel 5
Badge +13

@AdrianM Use your empty text variable after the space in the modify string as well, like below.



 

Reply