I'm editing a table in which there is a picture field, and another text field. Strange error occurs if I click on the text field to edit and mistakenly pressed the Enter key, the image will automatically be deleted.
Error when I press the Enter key
-
- User
- Posts: 9430
Set the button type as "button" explicitly so it will be treated as a submit button by browsers, you can use global Startup Script (see Server Events and Client Scripts in the help file), e.g.
$("button.delete").attr("type", "button");
Note that pressing Enter will still submit the form.