Skip to main content
Inspiring
July 21, 2024
Question

Dropdown Items not loading correctly when requesting signature

  • July 21, 2024
  • 1 reply
  • 231 views

I have a Acrobat Form with a Dropdown field involved via its Export Value in a calculation script.  Form fields work fine in Acrobat. When I request signatures, the dropdown Item selected reverses 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. 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? 

 

Thanks in advance!- kemper

1 reply

S_S
Community Manager
Community Manager
January 9, 2025

Hi @Kemper5F9B,

 

Hope you are doing well. Thanks for writing in!

 

If you are still looking for a solution, you can try the below solutions:

1. Use JavaScript to Set the Selected Value Dynamically

  • Before sending the form for signatures, you can use a script to pre-select the desired dropdown value. This ensures that the correct value is retained in the dropdown even during the signing process.
  • Example Script:
    this.getField("DropdownFieldName").value = "ExportValueToRetain";
    
  • Replace DropdownFieldName with the actual name of your dropdown field and ExportValueToRetain with the export value you want to keep.

Add this script as a Document JavaScript or trigger it through a button before sending the form for signature.


2. Embed the Selected Value in a Read-Only Field

  • Use a separate, read-only field to display the selected dropdown value as plain text. This avoids relying on the dropdown during signing.
  • Steps:
    1. Create a Text Field next to the dropdown.
    2. Use a custom calculation script in the text field to display the dropdown's value:
      var dropdownValue = this.getField("DropdownFieldName").value;
      event.value = dropdownValue;
      
    3. Make the text field read-only to prevent accidental changes.
    4. Include this field in your form for signature to ensure the value is visible and retained.

3. Update the Dropdown Behavior Using Adobe Tagging Guide

  • If you’ve already used the tagging guide to set up pre-fill roles, ensure the dropdown’s settings allow it to remain editable during signing:
    • Ensure the field role is set to prefill in the Adobe Sign workflow for all signers, but not restricted from being updated before signing.
    • Avoid enabling both "Read Only" and "Required" at the same time for the dropdown field.

4. Convert the Dropdown to a Text Field Before Sending

  • Convert the dropdown into a text field programmatically when the form is finalized but before sending it for signatures:

    1. Capture the current value of the dropdown.
    2. Replace the dropdown with a text field that displays the captured value.
    3. Use JavaScript to handle this transition.

    Example:

    var dropdownField = this.getField("DropdownFieldName");
    var selectedValue = dropdownField.value;
    dropdownField.hidden = true; // Hide the dropdown
    var textField = this.addField("DropdownTextField", "text", 0, dropdownField.rect);
    textField.value = selectedValue;
    textField.readonly = true; // Make the text field read-only
    


-Souvik