I’m trying to create a form using the html.Form component. I need to manage the form submission using a callback. Now I have a submit button, and I’ve linked the callback to the n_clicks property with no issue. My problem is when the user hits enter in one of the Form fields. This leads to a full POST, with page refresh and of course it doesn’t call the callback function.
Any thoughts on how can I prevent the form submission, and instead use a server side -or client side- callback function when the press enter in any form field -assuming the form is valid for submission-?