Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

reset button

Avatar

07-05-2008

trying to use the rest button to only reset a image field or reset only one page of the form. can this be done???



Thank!!

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

12-05-2008

The reset is programmed to do the whole form. You would have to build your own reset by getting a list of objects on the page and resetting each field object individually.

Avatar

Avatar
Validate 1
Level 4
Mark_Lindberg
Level 4

Likes

8 likes

Total Posts

211 posts

Correct Reply

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

Avatar
Validate 1
Level 4
Mark_Lindberg
Level 4

Likes

8 likes

Total Posts

211 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Mark_Lindberg
Level 4

13-05-2008

Take a look at this thread:

http://www.adobeforums.com/webx?7@@.3c05470a/1



Mark

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

25-11-2008

Hi Paul, Mark,



May i know how i can hide an image to a reset button?

i've tried the following to the existing script on the rest button but it doesn't work:



xfa.host.resetData();



image1.presence = "hidden";



the reset data button doesn't work anymore.



Can you help? Thanks!

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

25-11-2008

I am not sure that I follow. Buttons do not have images associated with them. You can have objects overlaying each other so it looks like there is an image on your button but they are still 2 distinct objects.



If you have Acrobat hit Ctrl-J to bring up the java console and see if there are any errors reported.



Lastly, make sure your form is dynamic.

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

25-11-2008

Hi Paul, sorry, maybe i wasn't clear enough....

I have a reset button on my form, this will clear all form data when clicked.



I have an image which, when the user hit on reset button, it still remains visible. So i need a script on the click event of the reset button hide it or to make it invisible.



Not that there was an image on the reset button.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

26-11-2008

To make the image invisible use imageFieldName.presence = "invisible"

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

26-11-2008

Hi Paul, I've used the above script onto the reset butoon, but it doesn't work and to no avail.... may i know, if there is a Yes/No radio button, what value does it return? is it "0" or "Off"?



can i script:



if (radiobutton.rawvalue = "0" && radiobutton.rawvalue = "Off")

{

Image.presence = "hidden";

}



i tried plotting the scripts onto different objects to see if it works.

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

26-11-2008

Hi Paul, Thanks.... I made it!