Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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."

Community Beginner ,
Jun 15, 2017 Jun 15, 2017

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.

TOPICS
Acrobat SDK and JavaScript , Windows
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jun 16, 2017 Jun 16, 2017

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!

Translate
Community Expert ,
Jun 15, 2017 Jun 15, 2017

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.

alertAfterSigning.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 15, 2017 Jun 15, 2017

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: 

Tryit Editor v3.5

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 15, 2017 Jun 15, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 15, 2017 Jun 15, 2017

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 15, 2017 Jun 15, 2017

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2017 Jun 16, 2017

// 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 16, 2017 Jun 16, 2017

Change this line:

oField = this.getField(this.getNthFieldName(i)).readonly = true;

To:

this.getField(this.getNthFieldName(i)).readonly = true;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2017 Jun 16, 2017

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;

}

unnamed.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2017 Jun 16, 2017
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines