I have a stamp that I threw together that worked fine in Acrobat, but in Reader, the fields for the check boxes and for the Name do not get placed on the stamp from the JS dialogue. I am not sure why.
Here is the code:
if(event.source.forReal && (event.source.stampName == "#bsiloE85pqFs4ntcdBQCMC"))
{
if ("ok" == app.execDialog(DiaBox))
{
var cMsg = DiaBox.byName;
event.value = "Project # " + cMsg;
event.source.source.info.exhibit = cMsg;
cMsg = "By: " + DiaBox.projNum;
this.getField("byNameField").value = cMsg;
this.getField("cbx1").checkThisBox(0, DiaBox.bChk1);
this.getField("cbx2").checkThisBox(0, DiaBox.bChk2);
this.getField("cbx3").checkThisBox(0, DiaBox.bChk3);
this.getField("cbx4").checkThisBox(0, DiaBox.bChk4);
this.getField("cbx5").checkThisBox(0, DiaBox.bChk5);
}
}
So like I said, this is working as it should in Acrobat, but in Reader, the Check boxes and the "By :" field are not getting populated. Thank you in advance for nay guidance.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com