- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 11:29 PM
Hi,
I have 2 check box fields in my catalog item
ANd i have flow designer with only 1 task but based on above check box field selected the task short description should be set
" If "ABC" radio button is selected, set Task Short Description to "example1 | Requisition #(Number from Requisiton field) for (Requested For name)"
If "DEF" radio button is selected, set Task Short Description to "example2 | Requisition #(Number from Requisiton field) for (Requested For name)" "
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 03:39 AM
@sinu2 : Yes, in script.
var x = fd_data.(get the value of variable from get Catalog variable step)
(Once you click on fd_data. you will get available options from previous step)
var short_desc= '';
if (x == true){
short_desc= "something";
}
else{
short_desc= "something";
}
return short_desc;
Hope it helps. Kindly mark helpful/accepted if it helps.
Regards,
Priyanka Salunke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 12:03 AM
@sinu2 : In flow, you can use , "Get catalog variables" step from you which will get checkbox field and value that passed while submitting request.
then use "Create Catalog Task" step where you can set short description using script as per your ask. Toggle scripting for this short description field. In script, using fd_data variable get checkbox value from Get Catalog variables step and accordingly set short description.
Hope it helps. Kindly mark helpful/accepted if it assists you.
Regards,
Priyanka Salunke.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 02:08 AM
@Priyanka you mean adding if condition and creating task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2024 02:14 AM
cant we write code in the short desc its self like
var x = fd_data.abc;
if x==true;
short_description ="something";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 03:39 AM
@sinu2 : Yes, in script.
var x = fd_data.(get the value of variable from get Catalog variable step)
(Once you click on fd_data. you will get available options from previous step)
var short_desc= '';
if (x == true){
short_desc= "something";
}
else{
short_desc= "something";
}
return short_desc;
Hope it helps. Kindly mark helpful/accepted if it helps.
Regards,
Priyanka Salunke