I need to disable a button after it has been clicked and gave birth to a model

I have little experience writing java script, but I'm sure I need to use java script to disable a page button Add after it has been clicked and spawned assigned model. The java script that I use to build the model is as follows.

var expTplt = getTemplate ("tpltReport");

expTplt.spawn(2,true,false);

This script works very well, and I have created several identical models with different names so that a specific model is launched when you click on the page button to add on a specific page in the pdf file. This is to prevent the information entered on one page are repeated on all subsequent pages that are added to the pdf. I have rename the fields on each model to achieve this.

Given that each model has its own page button to add, with the exception of the final model, if a user clicks several times since the same page it will generate multiple identical pages and the information repeat error will occur.

No simple solution?

Add the following at the end of your script until the button is the one that runs the script. A read-only setting button makes this option disabled. The event was the trigger, the target is the object that raised the event... in your case, the button, regardless of the number of times he gets renamed due to the Rogue process.

Event.Target.ReadOnly = true;

J-

Tags: Acrobat

Similar Questions

Maybe you are looking for