Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Blank option in PDF Dropdown

New Here ,
Oct 08, 2013 Oct 08, 2013

I have a number of PDF forms created in Adobe Acrobat that have a required drop down list.

Originally I had been adding a blank option to the top of the lists (by hitting the space bar in the Item Name and leaving the Export Value empty), so that the form displays blank when opened.

However, we had a series of forms submitted (using Adobe Reader and a "Submit a Form" button - the built-in one that comes with Acrobat not a custom javascript button) that some of the required dropdown lists have been left blank.

I then realized that because the "blank" option in the dropdown is not technically "null" or empty but a space that the Submit a Form button is not catching it as being empty and allows the form to be submitted.

1) Adobe: Why is there not a true "add a blank" option to the dropdown list properties that passes a "null" value so the Submit a Form button form works properly???

2) Since there isn't such an option, how do I keep the forms from being submitted when the dropdowns are left blank?  I'd rather not have to embed a bunch of javascript into the forms to check for something that should be built in.

TOPICS
PDF forms
54.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Beginner ,
Dec 04, 2024 Dec 04, 2024

But I finally found an answer on another thread. It took 2 days and hours of searching. This person is a true human legend.

melanie_4173_0-1733342319479.png

 

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 08, 2013 Oct 08, 2013

For #1, that's just the way it is. For #2, you will have to use JavaScript.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 09, 2013 Oct 09, 2013

I agree that it's a missing feature, but there's nothing we can do about it, or explain why it is so...

You can request new features here: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 09, 2013 Oct 09, 2013

If you load the drop down or list box using JavaScript it is possible to have null value but this is not the standardized method and can make updating the list by others difficult or Adobe could do something that treats this as an error or something else.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 17, 2015 Apr 17, 2015

#1 IS POSSIBLE! Just put a space bar!!!! and press ADD~! 2.PNG

YOU ARE WELCOME! I WAS WONDERING ABOUT THAT SAME THING MYSELF!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 17, 2015 Apr 17, 2015

That is how it is done using the UI.

With JavaScript using the setItems, one can add a true null.

If you expect to be changing the or editing the list on a regular basis, It might be easier to use a document level JavaScript to populate the fields.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 18, 2023 Jan 18, 2023

Can you provide instructions on how to do this in JavaScript?

I have dropdowns in my form but they default to the first value in the dropdown.  I just want them to default toa blank/empty field.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2021 Jan 12, 2021

That worked perfectly! Thanks for the tip!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2022 Jan 11, 2022

You human legend! There you have it ladies and gents

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2022 May 12, 2022

Unfortunately, this does not solve the problem.  They were using this method from the beginning, when he said, "Originally I had been adding a blank option to the top of the lists (by hitting the space bar in the Item Name and leaving the Export Value empty), so that the form displays blank when opened."

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 10, 2024 Jun 10, 2024

Worked like a charm.   Thank you

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 03, 2024 Dec 03, 2024

This creates an error on the user end if they try to request a signature. Essentially, my user had to delete every drop down on my form to get the signature request to send. The error reads "Drop Downs cannot be blank or contain spaces". 

melanie_4173_0-1733244368663.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2024 Dec 04, 2024

But I finally found an answer on another thread. It took 2 days and hours of searching. This person is a true human legend.

melanie_4173_0-1733342319479.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2025 Jan 15, 2025

This was a great answer and it looks great for the end user!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2025 Feb 06, 2025

SO helpful!! Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 19, 2025 Aug 19, 2025
LATEST

This is genius! Thank you.

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