I have a search bar that filters a collection that I want to execute upon a user pressing the Enter key. The code I have now (below) continually filters based on every letter the user enters. I’d like for the user to finish typing, then press Enter to execute the filter.
export function filterInput2_keyPress(event, $w) {
$w(“#dataset1”).setFilter(wixData.filter()
.contains(“description”, $w(“#filterInput2”).value));
}
Andreas About OnKeyPress Enter… The cursor remains in the input after KeyPress event, is it possible after OnkeyPress event once the value is saved to DB to disable this cursor (exit from the input). Keeping cursor in this input after keypress Enter is confusing for user…
You will tell me to add a succeed text message but I have 70 inputs code in this way in the page,I don’t want to add 70 succeed messages + 70 save failed messages
here’s my code :