Expand my Community achievements bar.

SOLVED

Time Interval

Avatar

Level 4

Hello,

In my form I have an images say img1.I want to display

img1 after 5 seconds of clicking a button present in my form.

Is there any way to solve my problem.

Thanks ,

Deb

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Deb,

You can use the app.setTimeOut() function to delay the presence change. For example in the click event of the button:

app.setTimeOut('xfa.resolveNode("xfa.form.form1.page1.Img1").presence = "visible";', 5000);

If you want to carry out a different operation, such as set rawValue, you would just need to amend the script. See an example here: https://acrobat.com/#d=5dv7lpeqEVtr1BJCUh6YHw.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi Deb,

You can use the app.setTimeOut() function to delay the presence change. For example in the click event of the button:

app.setTimeOut('xfa.resolveNode("xfa.form.form1.page1.Img1").presence = "visible";', 5000);

If you want to carry out a different operation, such as set rawValue, you would just need to amend the script. See an example here: https://acrobat.com/#d=5dv7lpeqEVtr1BJCUh6YHw.

Hope that helps,

Niall