code: function(field) {
    var converted = field.fieldId;
    converted.values = field.fieldValues;
    converted.sectionIndex = field.sectionIndex;
    return converted;
  }
docs: Fields in submissions and fields in forms have a little bit different structure, this method converts submission
  field into a form field.
  @param field