Matching text field in subform

评论

1 条评论

  • Avatar
    Patrick McClellan

    Belay that request! 

    I found a solution.... with jquery ( so much for low code )

    function reqReviewNameToString(){
    var names = '';
    var SFName = getField('hdnSF_SubmittersRequiringReview');  //this is the prepopulated subform
    var SFContentRow= $('.subFormContentRow',SFName);

    $.each(SFContentRow, function(i,v){
    var fullName = $(v).find("[id^='ReqReviewName']").val();   //this is the field in the subform the names populate into
    names += fullName+";";                                   //make a semicolon-delimited string out of the n-many entries
    $("#hdn_ReqReviewNameStr").val(names);   //populate a text field with the new string
    });
    }

    function getField(ctrl) {   //this is just a helper function
    debugger;
    var test = {};
    var options = {};
    options.fieldId = ctrl;
    eFormHelper.getField(options, function (myResult) { //call helper method
    if (myResult.isSuccess) {
    test = myResult.data;
    } else {
    console.log(myResult.error);
    }
    });
    return test;
    }

    /code

     

    I then simply added a "contains" comparison to trigger my rule, hdn_ReqReviewNameStr contains userNameField

     

    0
    评论操作 固定链接

请先登录再写评论。