Assign a parallel task based on a repetitive subform
I have a repeating subform where I can have multiples responsible:

But when I tried to assign a sequential task based on the "Responsible" field, the task is assigned only to the first row, and the other rows are completed ignored.
Is there any way to achieve what I need?
Thank you,
-
Hello Rafael,
Here is a sample code snippet to get the data from the subfrom. Please call this method on “Before submit”. Add hidden text field to the form and in the below script we are binding the subform dropdown value to the hidden text field. Use this hidden text field to the sequential task participant.
Hope this answer on your question and information you looking for
function getresponsibleuser()
{
var responsibleuser="";
var options = {};
options.fieldId = 'GetSubFormData'; //Give SubForm Internal Id
eFormHelper.getSubFormData(options, function (result)
{
if (result.isSuccess)
{
$(result.data).each(function(i,d){
responsibleuser += d["DropdownList1"]+";" // Give Dropdown Control Id.
});
}
});eFormHelper.setFieldValue({fieldId:'TestUsers',value:responsibleuser.slice(0,-1)}, function (result){}); // TestUsers is an hidden field control id.
}Regards,
Aravind
Please sign in to leave a comment.
Comments
1 comment