[Fixed]-Django onchange submit for entire form

1👍

the ‘submint’ does not require the Model name at the front

class RapidTillForm(forms.ModelForm):
    class Meta:
        widgets = {'linkArms': forms.RadioSelect(attrs={'onchange': 'submit();'}), 'shank':forms.RadioSelect,
        'caddy':forms.RadioSelect, 'liftAssist': forms.RadioSelect, 'folding': forms.RadioSelect}
        fields = ['rows', 'space', 'folding', 'shank', 'caddy', 'linkArms', 'liftAssist','shank',]
        model = rapidTill

Leave a comment