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 :
export function input49_keyPress(event) {
if (event.key === “Enter” ){increasevalue
( “goals” , $w( “#text842” ).text, “hp3_g” ,$w( “#input49” ).value)
.then(result => {
$w( “#dataset20” ).setFieldValue( “hp3_g” , $w( “#input49” ).value);
$w( “#dataset20” ).save();
} );
}
}