diff --git a/core/templates/core/feeding_form.html b/core/templates/core/feeding_form.html index dc2a8570..d4e51e82 100644 --- a/core/templates/core/feeding_form.html +++ b/core/templates/core/feeding_form.html @@ -35,5 +35,11 @@ defaultDate: false }); BabyBuddy.DatetimePicker.init($('#datetimepicker_end')); + $('#id_type').change(function() { + var feed_type=$('#id_type').val(); + if (feed_type=='formula'||feed_type=='fortified breast milk') { + $('#id_method').val('bottle'); + } + }); -{% endblock %} \ No newline at end of file +{% endblock %}