In this SharePoint designer workflow examples, we will discuss how to set text field value to empty in SharePoint 2013 designer workflow (SharePoint workflow set field to empty). We will also see how to set people picker filed empty or blank in the SharePoint designer workflow.
Lots of time we may get the requirement to make a textbox to empty string. Here we will discuss how we can do this by using SharePoint designer 2013 workflow. Learn how to set text field to empty SharePoint designer workflow.
Here I was a very simple requirement, after sending one email in the SharePoint designer 2013 workflow, I need to make a text field to empty in the workflow itself.
There is an action available in the SharePoint designer workflow name as “Set Field in Current Item“. It is easy to set a field value with another field value using this action, but no direct way to set blank or empty in that action in SharePoint designer 2013 workflow.
So here I created a local variable in the workflow with a default value of empty and assign that variable to my text field.
To create a local variable click on the Local variable button in the Ribbon as shown in the fig below:
Then in the Workflow Local Variables dialog box, click on Add and then give a name and chose the data type as string and then click on OK. Finally, the local variable dialog box should look like below.
Now add an Action name as Set Field in the current item. Click on the First value link and choose your field name. Then click on the second value link, it will open the Look up a dialog box. In the Data Source: choose Workflow Variables and Parameters. Field From Source: Your workflow variable name that we have created above. And Return Field As String as shown in the fig below:
Now your full action should look like below.
Set People Picker field to empty or blank in SharePoint designer workflow
Now we will see, how to set people picker field to empty or blank in SharePoint designer workflow.
I have a scenario like this:
I have a customized SharePoint InfoPath list form which contains a People picker field. Whenever a user submits the form an email will trigger the email id presented in the people picker.
Now my requirement is to set the people picker blank once the email sent. So tried various solutions like creating a variable and set it to empty and then assign that variable to the people picker. Then created another people picker field and assign that people picker in the Set value to value action. This also did not work for me.
The solution which works for me is in the Set value to value (Set field in Current Item action), I did like Set EmailTo to [space]. Here space means a space without bracket.
You may like following SharePoint designer workflow examples:
- SharePoint designer workflow examples: Steps to create a Leave Request SharePoint designer workflow in SharePoint Online
- Deploy SharePoint 2013 designer workflow into production in SharePoint online
- SharePoint 2013 designer workflow Add edit task form URL inside an email
- SharePoint 2013 Workflow Impersonation step missing in Designer
- Create SharePoint Site Collection and Site using Nintex Workflow for Office 365
- SharePoint Online Site Workflow and Initiation Form Parameters example using SharePoint designer workflow
- Set People Picker field to empty or blank in SharePoint designer workflow
- How to Trigger Sharepoint 2013 Designer workflow on a list item by calling REST API using jQuery?
- How to add edit task form URL inside SharePoint 2013 designer workflow email?
And it should work fine now and it will set field to empty using SharePoint designer workflow.
I hope this SharePoint designer tutorial explains how to set people picker and text field to empty in SharePoint designer workflow in SharePoint 2013/2016/Online.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com
Download SharePoint Online Tutorial PDF FREE!
Get update on Webinars, video tutorials, training courses etc.