Print selected checkbox values into the description of the catalog task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 07:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 07:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 07:41 AM
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