Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:22:47+00:00 2026-05-27T06:22:47+00:00

I am building a dynamic stamp in Acrobat. It has 5 check boxes, and

  • 0

I am building a dynamic stamp in Acrobat. It has 5 check boxes, and three text fields. I have the text fields fine, a dialog box pops up, ask Name, Project, they fill it in and it fills in the fields. The other text box is the date which I pull dynamically. The check boxes are the trouble. I know to check them with :

var f = this.getField("cb10");
f.checkThisBox(0,true);

Put I don’t know how to include the choices in the dialog box and link them to the stamp box.
Any help greatly appreciated.

EDIT

I have come up with this:

    var DiaBox =
{

result:"cancel",
DoDialog: function(){return app.execDialog(this);},
bChk1:false,
bChk2:false,
bChk3:false,
bChk4:false,
bChk5:false,
stredt1:"",
stredt2:"",
initialize: function(dialog)
{
var dlgInit = 
{
"Chk1": this.bChk1,
"Chk2": this.bChk2,
"Chk3": this.bChk3,
"Chk4": this.bChk4,
"Chk5": this.bChk5,
"edt1": this.stredt1,
"edt2": this.stredt2,
};
dialog.load(dlgInit);
},
commit: function(dialog)
{
var oRslt = dialog.store();
this.bChk1 = oRslt["Chk1"];
this.bChk2 = oRslt["Chk2"];
this.bChk3 = oRslt["Chk3"];
this.bChk4 = oRslt["Chk4"];
this.bChk5 = oRslt["Chk5"];
this.byName = oRslt["edt1"];
this.projNum = oRslt["edt2"];
},
description:
{
name: "Stamp",
elements:
[
{
type: "view",
elements:
[
{
type: "view",
char_height: 10,
elements:
[
{
type: "static_text",
item_id: "stat",
name: "Check only ONE box:",
width: 152,
height: 23,
char_width: 15,
alignment: "align_fill",
font: "dialog",
},
{
type: "check_box",
item_id: "Chk1",
name: "Approved",
},
{
type: "check_box",
item_id: "Chk2",
name: "Approved as Noted - Proceed",
},
{
type: "check_box",
item_id: "Chk3",
name: "Revise and Resubmit",
},
{
type: "check_box",
item_id: "Chk4",
name: "Not a required submittal - not Reviewed",
},
{
type: "check_box",
item_id: "Chk5",
name: "Rejected - Do Not Use",
},
{
type: "static_text",
item_id: "sta1",
name: "Project Number",
alignment: "align_row",
},
{
type: "edit_text",
item_id: "edt1",
char_width: 20,
char_height: 6,
alignment: "align_left",
},
{
type: "static_text",
item_id: "sta2",
name: "Name:",
},
{
type: "edit_text",
item_id: "edt2",
char_width: 20,
alignment: "align_left",
font: "palette",
},
]
},
{
type: "ok_cancel",
},
]
},
]
}
};

// Example Code
DiaBox.bChk1 = false;
DiaBox.bChk2 = false;
DiaBox.bChk3 = false;
DiaBox.bChk4 = false;
DiaBox.bChk5 = false;
DiaBox.stredt1 = "";
DiaBox.stredt2 = "";

if(event.source.forReal && (event.source.stampName == "#bsiloE85pqFs4ntcdBQCMC"))
{
  if ("ok" == app.execDialog(DiaBox))
  {
    var cMsg = DiaBox.byName;
    event.value = "Project # " + cMsg;
    event.source.source.info.exhibit = cMsg;

    cMsg = "By: " + DiaBox.projNum;
    this.getField("byNameField").value = cMsg;

    this.getField("cbx1").checkThisBox(0, DiaBox.bChk1);
    this.getField("cbx2").checkThisBox(0, DiaBox.bChk2);
    this.getField("cbx3").checkThisBox(0, DiaBox.bChk3);
    this.getField("cbx4").checkThisBox(0, DiaBox.bChk4);
    this.getField("cbx5").checkThisBox(0, DiaBox.bChk5);
  }
}

It works great in Acrobat, but in reader, the By Name field and check boxes don’t get populated. I can’t get a debugger in reader, so I have an issue tracking the problem. Can anyone see what it might be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:22:48+00:00Added an answer on May 27, 2026 at 6:22 am

    Since this is now coming up in the top of searches on Google, I will show you what I did, it is not perfect or elegant, but it works.

    {
    name: "Stamp",
    elements:
    [
    {
    type: "view",
    elements:
    [
    {
    type: "view",
    char_height: 10,
    elements:
    [
    {
    type: "static_text",
    item_id: "stat",
    name: "Check only ONE box:",
    width: 152,
    height: 23,
    char_width: 15,
    alignment: "align_fill",
    font: "dialog",
    },
    {
    type: "check_box",
    item_id: "Chk1",
    name: "Approved",
    },
    {
    type: "check_box",
    item_id: "Chk2",
    name: "Approved as Noted - Proceed",
    },
    {
    type: "check_box",
    item_id: "Chk3",
    name: "Revise and Resubmit",
    },
    {
    type: "check_box",
    item_id: "Chk4",
    name: "Not a required submittal - not Reviewed",
    },
    {
    type: "check_box",
    item_id: "Chk5",
    name: "Rejected - Do Not Use",
    }
    ]
    },
    {
    type: "ok_cancel",
    },
    ]
    },
    ]
    }
    };
    
    // Example Code
    //DiaBox.bChk1 = false;
    //DiaBox.bChk2 = false;
    //DiaBox.bChk3 = false;
    //DiaBox.bChk4 = false;
    //DiaBox.bChk5 = false;
    //DiaBox.stredt1 = "";
    //DiaBox.stredt2 = "";
    
    if(event.source.forReal && (event.source.stampName == "#bsiloE85pqFs4ntcdBQCMC"))
    {
      if ("ok" == app.execDialog(DiaBox))
      {
    
        this.getField("cbx1").checkThisBox(0, DiaBox.bChk1);
        this.getField("cbx2").checkThisBox(0, DiaBox.bChk2);
        this.getField("cbx3").checkThisBox(0, DiaBox.bChk3);
        this.getField("cbx4").checkThisBox(0, DiaBox.bChk4);
        this.getField("cbx5").checkThisBox(0, DiaBox.bChk5);
      }
    }
    
    if ("ok" == app.execDialog(DiaBox))
      {
        var cMsg = DiaBox.byName;
        event.value = "Project # " + cMsg;
        event.source.source.info.exhibit = cMsg;
      }
    

    Which separates the JS boxes, which was the only way I could capture the data for the stamp.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an application which will have dynamic allocated objects of type A each
I have a question regarding building dynamic PDF documents with ABCPDF.dll. I understand the
I have a stored procedure which is building a dynamic sql query and then
hi i am building a dynamic web project in which the welcome page have
I am building a dynamic form builder.. And i have a problem which i
I'm building a dynamic ExtJS form based on JSON data loaded from an ASP.NET
I am building a dynamic form in a Cocoa application and am planning to
I am currently building a very dynamic table for a list application, which will
I am considering building an application that is a blend of a dynamic language
I'm building a WinForm with quite a few dynamic elements, and I think I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.