<form>
<input required>
<button>Сохранить</button>
</form>
const form = document.querySelector('form');
const input = form.querySelector('input');
form.addEventListener('submit', (event) => {
event.preventDefault();
input.disabled = true;
});