I have been looking around and asking in other forums and no luck so far, so I'm hoping I will get a definte answer here (fingers crossed!). I'm looking for a script that will delete the default value of a drop-down menu as soon as the user is on that field (on focus) and will leave the default value untouched if the user leaves the field (on blur). The name of the field is "othersupplementalservices" and the default value is "Select".
Any help is greatly appreciated!
That may not be a good idea. Consider what would happen if the user selected an item and then reset the form. But if you really want to do that, use the setItems method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html
You can use the numItems field property to see how many items there are and act accordingly.
If the user resets the form, then the value set in this field will default to the original one. All I'm looking for is a script that would make the default value disappear when the user steps into that particular field. Same idea you fin in forms where you'll see "Type your name here" and as soon as you step into that field, that value is cleared and the user may begin inputting info into that field.