I currently have a functional custom dynamic stamp that includes multiple input fields prompting the user. My goal now is to integrate a form text field onto the stamp after it has been rendered. For example, if someone stamps everything except for the ledger codes because they don't know them at the time, and then sends the PDF to someone who does know the ledger codes, I want those codes to be added as editable form fields without requiring an additional stamp.
Essentially, once the stamp is applied, I no longer want it to function as a standard stamp; instead, I want it to become a form (I believe...)
The code below represents the working stamp (excluding the "approve" field)
var dialog = {
VendorNum: "",
Date: "",
ProjNumRow1: "",
ProjNumRow2: "",
ProjNumRow3: "",
ProjNumRow4: "",
GLCodeRow1: "",
GLCodeRow2: "",
GLCodeRow3: "",
GLCodeRow4: "",
AmountRow1: "",
AmountRow2: "",
AmountRow3: "",
AmountRow4: "",
Approval: "",
commit:function (dialog) { // called when OK pressed
var results = dialog.store();
this.VendorNum = results["txt1"];
this.Date = results["txt2"];
this.ProjNumRow1 = results["txt3"];
this.ProjNumRow2 = results["txt4"];
this.ProjNumRow3 = results["txt5"];
this.ProjNumRow4 = results["txt6"];
this.GLCodeRow1 = results["txt7"];
this.GLCodeRow2 = results["txt8"];
this.GLCodeRow3 = results["txt9"];
this.GLCodeRow4 = results["txtA"];
this.AmountRow1 = results["txtB"];
this.AmountRow2 = results["txtC"];
this.AmountRow3 = results["txtD"];
this.AmountRow4 = results["txtE"];
[...]