Assign a parallel task based on a repetitive subform

評論

1 條評論

  • Avatar
    Aravind Rajanna

    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

     

    0
    評論操作 永久連結

登入寫評論。