Skip to main content
Inspiring
July 28, 2024
Question

Script to remove Item/Values and Dropdown Items not loading correctly when requesting signature

  • July 28, 2024
  • 3 replies
  • 961 views

I have a Acrobat Form with a Dropdown field involved via its Export Value in a calculation script executed in a Text field.  Form fields work fine in Acrobat. When I request signatures, the dropdown Item selected reverts to the 1st Item listed in the Dropdown list in the Options tab. The only solution I've discovered is Deleting the Item/Values in the Option tab of the dropdown field and adding them to the field name per the Adobe tag guide and assigning to 'prefill' role, but this prevents accessibility to the dropdown when completing the form prior to sending for signature, and hence the calculation. Currently, my Acroform dropdown's Exported Value participates in the calculation prior to requesting signatures, so it's fine if I can find a solution to the following.

 

Is there a way to keep the original Item selected in the dropdown field's Option Tab in the Acroform to display in the SignForm dropdown field when requesting signatures? Or is there a scripted way to remove the Acroform's Items/Values listed on the field's Options tab prior to requesting signature?

 

Thanks in advance!- kemper

This topic has been closed for replies.

3 replies

PDF Automation Station
Community Expert
Community Expert
August 27, 2024

"is there a scripted way to remove the Acroform's Items/Values listed on the field's Options tab prior to requesting signature?"

Yes:

var dd=this.getField("Dropdown");
dd.setItems([[dd.getItemAt(dd.currentValueIndices,false),dd.getItemAt(dd.currentValueIndices,true)]]);
try67
Community Expert
Community Expert
July 28, 2024

Acorbat Sign forms have limited functionality when it comes to scripts. Unfortunately, this is not well described when converting a file to this format.

Inspiring
July 28, 2024

Hey Try67! - do you know if Acrobat is having problems. Mine just quit working today. I've reinstalled twice, clearing my DNS cache and restarting computer before each re-install? And when I attempt to open a pdf file I get a numberless 'Internal Error' message. Any ideas to resolve? Files aren't corrupt, created using acrobat pro??? -thanks- kemper

Legend
August 27, 2024

Hi @Kemper5F9B,

 

Following up to check if your issue with Acrobat is resolved or not. Let us know if you need help.
 
~Tariq

PDF Automation Station
Community Expert
Community Expert
July 28, 2024

Do you have any duplicate export values?

Inspiring
July 28, 2024
Yes, various decimals