Finding and inserting value into field in repeating subform using javascript

Comments

1 comment

  • Avatar
    Bindhu

    There seems to be a syntactical error in your code for GetFieldValue . Try the below code

    var options = {};
    options.fieldId = 'SubFormQuarters/Quarter:[' + i + ']'; //I'm using it in a loop, i being the current loop counter
    eFormHelper.getFieldValue (options, function (result) 

    if (result.isSuccess) //check if is success
       { 
       console.log(result.data); //logs the data holds the found control's value
       }
    else 
       {
       console.log(result.error); //logs the error
       }
    });
    0
    Comment actions Permalink

Please sign in to leave a comment.