5 Replies Latest reply on Jan 12, 2016 12:13 PM by haligaliharun

    Acrobat triggers user input popup before selecting a stamp

    haligaliharun Level 1

      Hi,

       

      I'm trying to create a custom stamp for my invoices. I would like to trigger user for inserting date and note.

      The problem is that when I want to add the stamp to the document, Acrobat prompts me with the input popup when I rollover "Dynamic" in the Stamps dropdown menu, before I even reach dynamic stamps list. In order to get to the stamp list, I have to click twice OK, and only then I get to the dynamic stamp list. When I select my stamp finally it prompts me again.

       

      What triggers this? Why? I want to be prompted only after I select the stamp from the stamp list.

       

      I have two fields, Date and Note. These are the two scripts I use:

       

      DATE

      var cResponse = app.response({

      cQuestion: "Insert payment date:",

      cTitle: "Date",

      cLabel: "Date:"

      });

      if (cResponse == null) {

      event.value = util.printd("dd-mm-yyyy",new Date);

      }

      else

      event.value = cResponse;

       

      NOTE

      var cResponse = app.response({

      cQuestion: "Insert comment note:",

      cTitle: "Note",

      cLabel: "Note:"

      });

      if (cResponse == null) {

      event.value = "";

      }

      else

      event.value = cResponse;

       

       

      This is when the popup is triggered:

      Screen Shot 2016-01-12 at 14.09.05.png

       

      This is how the custom stamp looks like, with two fields:

      Screen Shot 2016-01-12 at 14.11.25.png

       

      Thank you.