NoReactivity With Autoform ! Help Is Needed

Hello ,

when i do change the totalMonths value earnings array is not updated in autoform any advice

payrollSchema = new SimpleSchema({
earnings: {
type: [earningsSchema]
},
totalMonths: {
type: Number
}

})

    {{#autoForm collection="Payroll" schema="payrollSchema" id="formID" type="insert"}}
        <fieldset>
        
            {{> afQuickField name='earnings' minCount=numberOfParticipants maxCount=numberOfParticipants}}

            {{> afQuickField name="totalMonths"}}


            </fieldset>
        <button type="submit" class="btn btn-primary">Insert</button>
    {{/autoForm}}

Template.payroll.helpers({
numberOfParticipants: function () {
return AutoForm.getFieldValue(‘totalMonths’,[‘formID’])
},