Hi,
is it possible to access inside a schema another field of the same collection for autoform options?
This is my schema and I want to get the afFieldInput options for ‘googleReviewLink.$.city.$’ from the field citiy.
city: {
type: Array,
optional: true,
},
'city.$': {
type: String,
},
googleReviewLink: {
type: Array,
optional: true,
label: "Google Bewertungs-Links"
},
'googleReviewLink.$': {
type: Object
},
'googleReviewLink.$.name': {
type: String,
},
'googleReviewLink.$.url': {
type: SimpleSchema.RegEx.Url,
},
'googleReviewLink.$.city': {
type: Array,
optional: true
},
'googleReviewLink.$.city.$': {
type: String,
optional: true,
autoform: {
afFieldInput: {
options: function () {
//Values from requestCity
}
}
}
},