I tried recreating the same stamp (static lines and text), adding in the appropriate form fields, and inserting the same javascript in PDF-XChange, but am not getting any dialog box to popup or any dynamic text/button showing up once the stamp is placed, like I am in Bluebeam.
Code: Select all
// copied from BLUEBEAM Stamp Code
var builder =
{
// These map to Text Fields (Forms) in the Stamp
textBoxes :
[
{ field:"CheckedBy", description:"Checked by:", default:function() { return Collab.user; } },
{ field:"Date", description:"Date:", default:function()
{
var curDate = new Date();
return (curDate.getMonth() + 1) + "/" + curDate.getDate() + "/" + curDate.getFullYear();
}
}
],
// This maps to a Radio Group in the PDF named 'Status'
radioGroup : "Status",
radioButtons :
[
// value maps to the 'Choice' of each radio button in the group, description will show on the dialog
{ value:"rd1Acc", description:"Accepted" },
{ value:"rd2Not", description:"Accepted As Noted" },
{ value:"rd3Rev", description:"Rejected, Revise and Resubmit" },
{ value:"rd4Rej", description:"Rejected, Unacceptable" },
],
radioErrorMsg : "Please select a status"
}
Can anyone point out what I'm doing wrong? Thanks!