Expand my Community achievements bar.

Reset data before closing form

Avatar

Former Community Member

Hi all,

I have a problem and i don't know how to resolve it. I have a form and some fields in my form are mapped with my XML Schema. these fields are saved when i close my form. That is good. But i have other fields which are not mapped in my XML Schema. The reader or acrobat save these fields (the form is reader extended) and i don't want these fields are saved after closing my form. I tried to use the resetData in the docClose event but this event is called after the form closed and then the function resetData is not executed. Does anyone know how to do to reset these fields before closing my form. Any helps will be very appreciated

3 Replies

Avatar

Former Community Member

Please,

Any help will be appreciated.Or any idea to bypass this problem.

Help me please

Avatar

Level 6

Try this:

function clearForm() {
this.resetForm();   //clear all form fields
this.nocache = true;        //for this form
this.noautocomplete = true; //for this form
}

Avatar

Former Community Member

Thanks paulk07 for your reply,

In which event should i put this script.

Thanks again