Using
import SimpleSchema from 'simpl-schema';
export const WeatherSchema = new SimpleSchema({
temperature: {
type: Object,
label: 'Temperature',
required: true,
},
'temperature.min': {
type: String,
label: 'Low: ',
},
'temperature.max': {
type: String,
label: 'High: ',
},
});
In autoform template
<Template name="someTemplate">
{{#autoForm
schema=weatherSchema
id="dailyLogSchemaForm"
type="method"
meteormethod="addTemperature"
template="bootstrap4"
}}
{{> afQuickField name="weather"}}
{{/autoForm}}
</Template>
The weatherSchema comes from a helper
the output after submission

Validation messages and indicators not shown.
Using
In autoform template
The weatherSchema comes from a helper
the output after submission
Validation messages and indicators not shown.