Saving a pdf without data

Avatar

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

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
Boost 5
Level 4
djaknow
Level 4

Likes

45 likes

Total Posts

370 posts

Correct reply

33 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Level 4
djaknow
Level 4

Likes

45 likes

Total Posts

370 posts

Correct reply

33 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
djaknow
Level 4

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
Boost 5
Level 3
Dallas_Kuhn
Level 3

Likes

16 likes

Total Posts

105 posts

Correct reply

20 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 3
Dallas_Kuhn
Level 3

Likes

16 likes

Total Posts

105 posts

Correct reply

20 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Dallas_Kuhn
Level 3

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
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 3
xrum
Level 3

Likes

7 likes

Total Posts

89 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
xrum
Level 3

20-11-2009

thanks

Avatar

Avatar
Boost 5
Level 3
Dallas_Kuhn
Level 3

Likes

16 likes

Total Posts

105 posts

Correct reply

20 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 3
Dallas_Kuhn
Level 3

Likes

16 likes

Total Posts

105 posts

Correct reply

20 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Dallas_Kuhn
Level 3

20-11-2009

Attached is an example for you.