Expand my Community achievements bar.

SOLVED

Saving a pdf without data

Avatar

Former Community Member

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!

1 Accepted Solution

Avatar

Correct answer by
Level 7

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.

View solution in original post

4 Replies

Avatar

Former Community Member

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

Correct answer by
Level 7

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.