- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2017 01:42 AM
Hi Guys,
I want short description field in the catalog task to be filled dynamically as selected by the user.
There are 4 check-boxes in my cat item- variable 1, variable 2, variable 3, variable 4.
If user selects variable 1 and variable 2 then in my task's short description, it should look like 'variable 1, variable 2'.
Is this achievable?
Thanks,
Amlesh
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2017 02:07 AM
Use script like below in your workflow task activity.
var str = '';
if (current.variables.variable_1 = 'true'){
str = str + ''variable 1';
}
if (current.variables.variable_2 = 'true'){
str = str + ''variable 2';
}
task.short_description = str;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2017 02:07 AM
Use script like below in your workflow task activity.
var str = '';
if (current.variables.variable_1 = 'true'){
str = str + ''variable 1';
}
if (current.variables.variable_2 = 'true'){
str = str + ''variable 2';
}
task.short_description = str;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2017 02:51 AM
Thank you very much Deepak.
It Worked with small correction- current.variables.variable_1 == 'true' instead of current.variables.variable_1 = 'true'
Thanks,
Amlesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2022 04:39 AM
I have similar issue, but I want to populate short description for different catalog items dynamically can you please suggest, for three catalog items three short descriptions