How to clear the variable value (Empty the variable value) in the workflow using Runscript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 06:10 AM
Hi Team,
I have requirement where i need to clear two date fields with in the workflow, please let me know how we can achieve this.
Let me give more details on this in my form i have field named Uat_Completion_date which needs to be filled by the requester, but after the request submission in the middle of the workflow i need to clear what ever date (value) we have in the Uat_completion_date field, as i need to make a re entry for that particular field if the UAT fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2018 06:12 AM
Hello,
Please add this line in a Run script activity.
current.variables.uat_completion_date = "";
and it should clear the value.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2018 07:51 AM
Hi Alikutty,
Your suggestion is working perfectly for the date fields, what i need to mention if i have a drop down field and i need to reset the value to "None"?
Thanks in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2018 07:57 AM
You can use the same
current.variables.drop_down_field = "";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2018 08:21 AM