This topic is locked
[SOLVED]

Automatically save record when user leaves field

5/23/2021 7:51:40 PM
PHPRunner General questions
A
AlphaBase author

I created a blur event for a field on an Add page. When the user leaves the field I want to save the record.

Client Before: ajax.submit();
Server: $("#add_save").click();

add_save is the save buttion's id.

This gives me an error?

How do I automatically save the record when the user leaves the field?

A
AlphaBase author 5/23/2021

Okay, that didn't take long. Got rid of the server code and the ajax.submit(); and added this to the Client Before: pageObj.getItemButton('add_save').click();

Bingo!