If we can set active=false using script action ???

Sanoop Shaji
Mega Contributor

setting active field to false using script action

1 ACCEPTED SOLUTION

ARG645
Tera Guru

Yes you can. Script Actions run on the server side and come into play when the corresponding event is triggered. 

example script for the script action to set active to true

current.setValue('active',true);
current.update();

View solution in original post

3 REPLIES 3

Brian Lancaster
Tera Sage

Can you please provide more information on what you are asking?  You can set a true/false field to false thought a script.

"Can you please provide more information on what you are asking?"

Sorry Sir i'm new in service now community,

Asking about the active button...we can set value=true automatically when i click submit

Thank u for your valuable suggestion and reply  

find_real_file.png

 

ARG645
Tera Guru

Yes you can. Script Actions run on the server side and come into play when the corresponding event is triggered. 

example script for the script action to set active to true

current.setValue('active',true);
current.update();