code: function findFieldOption(options, field) {
    const flattenedOptions = Util.flatten(options);
  
    return Util.find(flattenedOptions, function(fieldOption) {
      var isField = fieldOption.name === field;
      if (fieldOption.fieldType === "object" && !isField) {
        return findFieldOption(fieldOption.definition, field);
      }
  
      return isField;
    });
  }
docs: Find a the options for a particular field in the form.