issue in subform set input value by JS

Comments

3 comments

  • Avatar
    AgilePoint NX Support

    Hi Rakesh,

    You can accomplish this by using Rules in eForms. To know more about rules, please visit our documentation page on setting up rules. For the scenario that you have described, you'll need to use the 'Set Field Value' action under the 'Actions' section.

    For the value to set to the target field, you can simply drag the source field from the 'Fields' section and drop it into the 'Field value' text box.

    Hope this is helpful and resolves the issue. If your issue is still not resolved, please initiate a support ticket on our Support Portal where you will be able to create a detailed conversation with your queries and issues with tracking.

    Regards,
    Phani

    0
    Comment actions Permalink
  • Avatar
    Rakesh Burde

    Actually, I need to use javascript to check this logic.  

    debugger;
    var opt={};
    opt.fieldId='SubformDetailInfo/Director: [this]';
    eFormHelper.getFieldValue (opt, function (res)
    {
    if (res.isSuccess){
    app1 = res.data ;
    }
    });

    Login in between 


    debugger;
    var opt3={};
    opt3.fieldId='SubformDetailInfo/FirstApprover: [this]';
    opt3.value=app1
    eFormHelper.setFieldValue( opt3, function(res2){

    });

    I use code like this to get and set value in input but it collects all input box values comma saperated.

     

    0
    Comment actions Permalink
  • Avatar
    Rakesh Burde

    Can we do it by JS without using Rule?

    0
    Comment actions Permalink

Please sign in to leave a comment.