- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 07:56 PM
Hi everyone, I have a requirement,
I need to display the selected checkbox variables by the user in sc_task description, I have more than 20 checkboxes, only selected checkbox variables need to display, I use set flow variable but it's now working, can you please help me on that.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 11:25 PM
Hi @Tuhina Sharma ,
You cannot get the label of a variable or a field in Flow Designer.
I can give you an alternative. Please follow the process.
Step 1: Get the variables using the "get catalog variable" action.
Step 2: Use "Create Catalog Task" action to create the task.
Step 3: while setting description value, use this script,
Regards,
Deborah Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 08:14 PM
If you need it on server side, You can use business rule:
// Business Rule to update description field of sc_task with selected checkbox variables
(function executeRule(current, previous /*null when async*/) {
// Array to store selected checkbox variables
var selectedCheckboxes = [];
// Check each checkbox variable and add selected ones to the array
if (current.checkbox_variable_1 == true) {
selectedCheckboxes.push('Checkbox Variable 1');
}
if (current.checkbox_variable_2 == true) {
selectedCheckboxes.push('Checkbox Variable 2');
}
// Add more if statements for additional checkbox variables
// Update the description field with selected checkbox variables
current.description = "Selected Checkbox Variables: " + selectedCheckboxes.join(', ');
// Update the sc_task record
current.update();
})(current, previous);
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 08:44 PM
Hi @Tuhina Sharma in your flow designer use get catalog variables action and select item and variables
when you create a task add the check box variables here
or you could use onload client script on sc_task table to show check boxes which are checked
script:
var checkbox = g_form.getValue('variables.checkbox1');
if(checkbox )
{
g_form.setVisible('variables.checkbox1',true);
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 11:25 PM
Hi @Tuhina Sharma ,
You cannot get the label of a variable or a field in Flow Designer.
I can give you an alternative. Please follow the process.
Step 1: Get the variables using the "get catalog variable" action.
Step 2: Use "Create Catalog Task" action to create the task.
Step 3: while setting description value, use this script,
Regards,
Deborah Brown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 05:54 AM
Hey @Deborah Brown L, thank you so much, it works.