Help with Javascript function to show a hidden button with setTimeout
I have an interactive PDF with a form field button called “Nav_Forward_Page_14” that is set to hidden. I want the button to be visible 5 seconds after the page containing the button loads; so on Page Properties (for the page with the button), I've tried adding the following Javascript on page load, with no success:
setTimeout(function() {
this.getElementById("Nav_Forward_Page_14").style.display = "inline";
}, 5000);
Thinking that I may have the function wrong, I also tried:
setTimeout(function() {
this.getElementById("Nav_Forward_Page_14").display = display.visible;
}, 5000);
After more research, I've also tried:
function runImage() {
this.getField("Nav_Forward_Page_14").display = display.visible
}
run = app.setTimeout("runImage()", 5000);
Please help me correct the function necessary to show the hidden button after a delay on page load in a PDF. Thank you in advance!
