Saving a pdf without data

Avatar

Avatar

xrum

Avatar

xrum

xrum

20-11-2009

i have a pdf, that i need the user to fill out and print, but i do not want them to be able to save the data they've entered.

so if they click save, it would only save a blank pdf form.

is it possible? how?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

djaknow

Avatar

djaknow

djaknow

20-11-2009

You could put:

xfa.host.resetData();

on the preSave event of one of your fields, that should wipe all the fields before saving. If you need this script in the future, it's on the default Reset Button in the Standard object library.

Answers (3)

Answers (3)

Avatar

Avatar

Dallas_Kuhn

Avatar

Dallas_Kuhn

Dallas_Kuhn

20-11-2009

You can write a function to loop through all the fields on the form and clear the data. Then you can call the function from the preSave event.

Avatar

Avatar

xrum

Avatar

xrum

xrum

20-11-2009

thanks

Avatar

Avatar

Dallas_Kuhn

Avatar

Dallas_Kuhn

Dallas_Kuhn

20-11-2009

Attached is an example for you.