This topic is locked

Save record by pressing ENTER

1/30/2015 12:57:08 PM
PHPRunner Tips and Tricks
admin

Lets say you need to add many records and you want to speed up the process by using the keyboard only. We can make it happen making ENTER button to act as a 'Save' button click. Here is what you need to add to Javascript OnLoad event of the Add page:

$(document).keypress(function(e) {

if(e.which == 13) {

$("[id^=saveButton]").click();

}

});


This is it.

Myr0n 7/19/2020

How can I implement this trick in a field event?

Like the last field in a grid / form?

Because this trick works by pressing enter on any field.

Thank very much

Myr0n 7/21/2020



How can I implement this trick in a field event?

Like the last field in a grid / form?

Because this trick works by pressing enter on any field.

Thank very much


I found a solution but not using in the field event, I posted here