Copy link to clipboard
Copied
Is it possible to add a notification that pops up when a digital signature has been applied saying "your digital signature has succesfully been applied."
I am using a PDF program on IPad Pro and it uses electronic signatures like look like handwritten signatures to verify documents. I had already set the rules on ADOBE ACROBAT DC PRO to make all fields read to lock the document to prevent further edits. However, in the JavaScript section i Can add codes to make certain things happen. If possible, I'd like to add a pop up saying "your digital signature has been successfully been applied."
Also, if i can add a digital stamp saying the users name and time/date to be placed in the signature box as well That would be nice.
OK, i was able to change the last line like you said and it did the trick.
app.alert("Your Electronic Signature Has Successfully Been Applied.");
// make all fields in a form read only;
var oField; // variable for field being processed;
// loop through the form fields;
for (var i = 0; i < this.numFields; i++) {
// process each field name;
this.getField(this.getNthFieldName(i)).readonly = true;
}
Thank you everyone for helping!
Copy link to clipboard
Copied
You can add an alert in the signed script area. See image. There's no guarantee that the unnamed PDF program will interpret it correctly though.
Copy link to clipboard
Copied
Hello,
i want to use a code similar to this:
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Alert</h2>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert("Your Signature has been succesfully applied.");
}
</script>
</body>
</html>
Source:
Copy link to clipboard
Copied
Right... so the script you add under "This script executes..." would be...
app.alert("Your Signature has been successfully applied.");
But again, you haven't said what application is being used to add the signature on the iPad so I have no idea if that will actually run.
Copy link to clipboard
Copied
Ok, thank you. The program is called Fluix.io and the code did work but unfortunately I already have an action selected for Mark as read only for all fields. Adobe acrobat pro D.C. Only let's you choose one action when signed. Do you think there is a way around this?Maybe there is a way to add the "mark all as read" code to the other script?
Copy link to clipboard
Copied
I was working on something similar and I found that the correct answer of this thread helped me for a read only code :
PDF Form javascript for making readonly field by using button
It is for a button but I suppose it should work for a signature field as well. Just in case...
Copy link to clipboard
Copied
// make all fields in a form read only;
var oField; // variable for field being processed;
// loop through the form fields;
for (var i = 0; i < this.numFields; i++) {
// process each field name;
oField = this.getField(this.getNthFieldName(i)).readonly = true;
}
Would I have to edit anything?
Copy link to clipboard
Copied
Change this line:
oField = this.getField(this.getNthFieldName(i)).readonly = true;
To:
this.getField(this.getNthFieldName(i)).readonly = true;
Copy link to clipboard
Copied
I'm new to this but i combined two scripts and got the document to lock all fields and give a pop up notification. However, the fields lock even before the My Signature button gets chosen.
app.alert("Your Signature has been applied.");
// make all fields in a form read only;
var oField; // variable for field being processed;
// loop through the form fields;
for (var i = 0; i < this.numFields; i++) {
// process each field name;
oField = this.getField(this.getNthFieldName(i)).readonly = true;
}
Copy link to clipboard
Copied
OK, i was able to change the last line like you said and it did the trick.
app.alert("Your Electronic Signature Has Successfully Been Applied.");
// make all fields in a form read only;
var oField; // variable for field being processed;
// loop through the form fields;
for (var i = 0; i < this.numFields; i++) {
// process each field name;
this.getField(this.getNthFieldName(i)).readonly = true;
}
Thank you everyone for helping!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now