The CreatorCon Call for Content is officially open! Get started here.

How to clear the variable value (Empty the variable value) in the workflow using Runscript

sreejith05
Giga Expert

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.

 

find_real_file.png

9 REPLIES 9

Alikutty A
Tera Sage

Hello,

Please add this line in a Run script activity.

current.variables.uat_completion_date = "";

and it should clear the value.

Thanks!

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.

You can use the same 

current.variables.drop_down_field = "";

That doesnt work, basically its Yes/No dropdown field with a "None" in it. I wanted to set this back to None.

find_real_file.png