$('#contacts-formset').on('formAdded', event => {
    const inputs = $(event.target).find(':input');
    $.each(inputs, (_, input) => {
      const $input = $(input);
      if ($input.attr('type') !== 'button') {