How to Erase or Blank a Text Field with a Workflow in SharePoint Designer

Use a Workflow to Erase or Blank a Text Field in SharePoint

Sometimes, you come across a situation where you need to erase or blank out the contents of a text field in SharePoint. You don’t need to delete the item. Instead, you just need to blank a text field. Using a whitespace character just won’t cut it. To accomplish this, you will need to create a simple workflow using SharePoint Designer. Presented below are two specific ways. I’ve used one of them with SharePoint Designer 2010. I’ve used the other with SharePoint Designer 2013.

How to Blank a Text Field with a Workflow in SharePoint Designer 2013

First, create a workflow variable containing a single space character and use the Trim function to blank the variable.

blankfield1

Select Trim String from the Action button in the SharePoint Ribbon.

blankfield2

Replace the string value with a single space character (” “).

blankfield3
Create a new variable by selecting Create New Variable after clicking the Variable: output link in the Output to parameter. Enter a name (such as “BlankString”) in the Name field. Click OK.

blankfield4
Select Set Field in Current Item from the Action button in the SharePoint Ribbon.

blankfield5
Select the field you need to blank out. In this example we’ll use one called Comments.

For the value, select Workflow Variables and Parameters in the Data Source drop down list.

In the Field from source drop down list, select your variable name. In this example we used “BlankString” so the choice to make would be Variable: BlankString.

blankfield6

Click OK.

blankfield7

There you go. You’re now able to blank a text field with a workflow in SharePoint.

How to Blank a Text Field with a Workflow in SharePoint Designer 2010

In SharePoint Designer 2010, the Trim function isn’t available. Instead, you are able to create the blank workflow variable by simple creating the workflow variable and not setting an initial value to the workflow. Just leave the variable created by selecting Create New Variable from the Action button in the SharePoint Ribbon. The image below illustrates the completed workflow.

blankfield8

There you go.

8 thoughts on “How to Erase or Blank a Text Field with a Workflow in SharePoint Designer

Leave a Reply

Your email address will not be published. Required fields are marked *