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

Need to make an URGENT "tag" appear on front page of PDF form based on status of signature

Guest
Jul 27, 2016 Jul 27, 2016

Note:  I am using Acrobat XI Pro (not LiveCycle Designer)

I need to have an "URGENT" label pop up on the first page of a PDF form in response to a particular signature field being signed.  I was thinking of creating a field with URGENT in big red letters, and then having it hidden by default.  I think I figured out how to determine if the sig field is signed:

var oSigState = this.getField("Signature17").signatureInfo().status;

if the oSigState variable is 0, it's unsigned, and the field stays hidden.

I figure using an if-then statement based on the value of oSigState could then be used to change the display attribute, but I am a little unsure about how to do that.  Any suggestions?  I am a javascript newbie.  Also, how would I assign the display state to hidden to begin with?

Thanks in advance!

Marshall Jones

TOPICS
Acrobat SDK and JavaScript , Windows
395
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 ,
Jul 27, 2016 Jul 27, 2016

Use this code as the field's custom calculation script:

var oSigState = this.getField("Signature17").signatureInfo().status;

event.target.display = (oSigState==0) ? display.hidden : display.visible;

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
Guest
Jul 27, 2016 Jul 27, 2016
LATEST

I decided to go with a check box instead:

if (this.getField("Check Box2").value !="Off")

{

event.target.display= display.visible;

}

else event.target.display=display.hidden;

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
LEGEND ,
Jul 27, 2016 Jul 27, 2016

The problem with this sort of thing is you're making a change to the document after it's been signed, which will require an additional save and it changes will be indicated when validating the signature.

Filling in fields is a common thing to do after a signature field is signed, so I would recommend setting the field value (to "URGENT"/blank) rather than showing/hiding the field.

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