lib/common/misc.js
function addAdminFieldToSubmission(field) {
    //Full field object is used in the return as existing fields are populated already.
    var subObject = {
      fieldId : field,
      fieldValues: []
    };

    submission.formFields.push(subObject);
  }
function addAdminFieldToSubmission(field) {
    //Full field object is used in the return as existing fields are populated already.
    var subObject = {
      fieldId : field,
      fieldValues: []
    };

    submission.formFields.push(subObject);
  }
function addAdminFieldToSubmission ( field ) { //Full field object is used in the return as existing fields are populated already. var subObject = { fieldId : field , fieldValues : [ ] } ; submission . formFields . push ( subObject ) ; }
The field definition can either be in the submission that has a populated fieldId,
Or the field definition is an admin field that is in the formSubmitted against.
As this field is not included in a client submission, a scan of the formSubmitted against must be made.
@param field
@param formJSON
The field definition can either be in the submission that has a populated fieldId Or the field definition is an admin field that is in the formSubmitted against . As this field is not included in a client submission a scan of the formSubmitted against must be made .