Skip to main content
May 13, 2010
Risolto

Adding a "blank" selection for drop-down menus under list items.

  • May 13, 2010
  • 4 risposte
  • 9640 visualizzazioni

A lot of people on this form are accidentally selecting items that shouldn't be selected and need to be able to change the drop down menu back to blank if they have made a mistake and selected a wrong drop down item in the wrong area.

Please help,

Thanks!

Questo argomento è stato chiuso alle risposte.
Migliore risposta di Srini_Dhulipall

See if this sample helps..To test it, select any value from the Dropdown and click the "Reset" button.

https://acrobat.com/#d=nniRxwkhF*WzNou2QLAm6A

You can not add a blank as an item to Dropdown. So I placed one space using the Space bar while adding items to the Dropdown.

Thanks

Srini

4 risposte

Srini_Dhulipall
Level 10
May 13, 2010

Add an item to your Dropdown list with Blank as text and some value to it.

When you want to rest to blank, just simply set the rawValue to the value against the blank text.

For example if I add a blank text and assign a value "1" to it.

Then in the code I may use like below to rest it to Blank Text.

     DropDown1.rawValue ="1";

Thanks

Srini

May 13, 2010

Gotcha,

But I want thier to be No text, so I don't want the literal text "Blank" to show.

Srini_Dhulipall
Level 10
May 13, 2010

See if this sample helps..To test it, select any value from the Dropdown and click the "Reset" button.

https://acrobat.com/#d=nniRxwkhF*WzNou2QLAm6A

You can not add a blank as an item to Dropdown. So I placed one space using the Space bar while adding items to the Dropdown.

Thanks

Srini

May 13, 2010

AHH!

Space bar did the trick!

THANKS!