Form Data Change Save Message

Hi All,

I am using DHTMLX touch forms, I am stucked up with a requirement where I need to know if the contents on the form have changed. If yes, then I need to show the user a popup message to save the data, if not then I allow him to go ahead with his action.

Is it possible to check through javascript what data was present in the form fields when the form was loaded.

Any one has any suggestions or solutions for this, please do share.

Thanks,
Yogesh

Hi

form have onChange event.

also you can get form’s data when it loaded,
var data = myForm.getFormData();

and make the same after user going to leave page,
and compare it.