Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Print selected checkbox values into the description of the catalog task

Ujjwal019
Tera Guru

In the catalog form, there are several checkboxes available. I want to print the values of all the selected checkboxes into the description field of the catalog task form. For this catalog item I created a Flow Designer.

 

 

Ujjwal019_0-1715263197053.png

 

2 REPLIES 2

CezaryBasta
Tera Guru

And what is stopping you from doing this? What have you tried? Do you have a problem with something? Or a question about something?

--
See more of my content here.

SAI VENKATESH
Kilo Patron
Kilo Patron

Hi @Ujjwal019 

You can try the below script under the description field script:

var description = "";
var value1 = fd_data._1__get_catalog_variables.value1;
var value2= fd_data._1__get_catalog_variables.value2;
var value3= fd_data._1__get_catalog_variables.value3;
if (value1=="true"){
    description +=fd_data.trigger.request_item.variables.value1.getLabel()+"\n";
}
if (value2=="true"){
    description +=fd_data.trigger.request_item.variables.value2.getLabel()+"\n";
}
if (value3=="true"){
    description +=fd_data.trigger.request_item.variables.value3.getLabel();
}
return description;

 

I have tested in my PDI and it is working fine 

 

Thanks and Regards

Sai Venkatesh