Highlighted

Adding drop down list to a dynamic stamp

New Here ,
Aug 13, 2020

Copy link to clipboard

Copied

I have a stamp that asks the user to enter data into fields.  I would like one of the fields to be a drop down list and the stamp to query the user for which item to show.  How would I get the dropdown list to show?

if ((event.source.forReal)&&(event.source.stampName == "#Invalid_Stamp"))
{
this.getField("Element").value = app.response("Element:");
this.getField("SampleNumber").value = app.response("SampleNumber:");
this.getField("Reason").List.value = app.response("Reason:");


this.getField("Date").value = util.printd("mm/dd/yyyy" , new Date());

}

TOPICS
PDF forms

Views

43

Likes

Translate

Translate

Report

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

Adding drop down list to a dynamic stamp

New Here ,
Aug 13, 2020

Copy link to clipboard

Copied

I have a stamp that asks the user to enter data into fields.  I would like one of the fields to be a drop down list and the stamp to query the user for which item to show.  How would I get the dropdown list to show?

if ((event.source.forReal)&&(event.source.stampName == "#Invalid_Stamp"))
{
this.getField("Element").value = app.response("Element:");
this.getField("SampleNumber").value = app.response("SampleNumber:");
this.getField("Reason").List.value = app.response("Reason:");


this.getField("Date").value = util.printd("mm/dd/yyyy" , new Date());

}

TOPICS
PDF forms

Views

44

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 13, 2020 0
Most Valuable Participant ,
Aug 13, 2020

Copy link to clipboard

Copied

There's no reason to put a drop-down field on the stamp itself, since the user can't interact with it. You can use a text field.

The drop-down field needs to be in the dialog object where you prompt the user to select a value out of a pre-defined list.

Then you take that selected value and apply it to the field in your stamp.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 13, 2020 0
New Here ,
Aug 14, 2020

Copy link to clipboard

Copied

How do you make a dialog object appear when the stamp is placed?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 14, 2020 0
Adobe Community Professional ,
Aug 16, 2020

Copy link to clipboard

Copied

Did you look at the links I posted? It's all explained there.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 16, 2020 0
Adobe Community Professional ,
Aug 13, 2020

Copy link to clipboard

Copied

All of the fields on a dynamic stamp are filled automatically. The user never sees them. All they see is the flattened result on the stamp.  Filling fields interactively requires a popup dialog. For a dropdown you'll need a custom dialog. 

You'll find more info on this here:

https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm

https://acrobatusers.com/tutorials/dynamic_stamp_secrets/

Here's some info on custom popup dialogs:

https://www.pdfscripting.com/public/ACRODIALOGS-OVERVIEW.cfm

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 13, 2020 0