Skip navigation
forevercommuting
Currently Being Moderated

How to set a dropdown display value

Aug 25, 2011 11:41 PM

I know how to access the current value of a dropdown box. But how can I set it?

 

I have a dropdown box and one of the choices is 'Other'. When 'Other' is selected, a text box is enabled so the user can describe what they mean by 'Other'. Now, I want to make the dropdown more robust where if after selecting 'Other' and providing a comment the user willingly or not makes a different selection, the user is warned that the 'Other' description will be deleted with a choice to proceed or not. If the user proceeds the description is deleted and the text box disabled; if the user doesn't want to proceed with the deletion the text box is left enabled with its value untouched and the dropdown value is reset to 'Other'. This is the part that I can't figure out: how do I reset the display value of the dropdown?

 

Thanks for the help!

 

Marc

 
Replies
  • Currently Being Moderated
    Aug 26, 2011 3:02 AM   in reply to forevercommuting

    Hi,

     

    Can you use

     

    nameOfDropDown.rawValue = "Other";

     

    Hope this helps

     

    Malcolm

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 9:33 PM   in reply to forevercommuting

    dropdown.jpg

    Hello all,

     

    I need help with drop down list, by default the drop down list box is blank , if a user click down arrow give Add Remove option , i want to create a empty area where if a user accidently clicked the drop down and they want the field to go back to default (Blank).

     

    Thanks in advance.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points