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

Execute actions upon selection from a popup

New Here ,
Jul 17, 2024 Jul 17, 2024

I need an action to happen then the user selects yes and to cancel signature when they select no.

Current Code:

var SignatureField1 = this.getField("SM Signature");

var nButton = app.alert({cMsg: "If you have a Common Access Card (CAC) to digitally sign, please select Yes. If not, please select No and apply a manual signature when required.",

cTitle: "Question ?",

nIcon: 2,

nType: 2});

if (nButton != 4 ) {

SignatureField1.access = "protected";

}

 

I need a Warning popup to appear with only the "OK" option prior to digitally signing. I also need to stop the digital signature process to discontinue or attempt to find a signature when the user selects "No". I do not know where or what I need to input the additional code in this code to execute I need. The original popup works fine but won't execute what I need it do or stop it from trying to sign when I need it to stop.

 

Can someone please help me with this situation?

TOPICS
How to , JavaScript , PDF forms , Security digital signatures and esignatures
177
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 17, 2024 Jul 17, 2024
LATEST

Do you use script in a button or in a signature field?

You could set signature to readonly or, even better, hide it until user select 'Yes' from alert.

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