facebook

Accessing Selection(s) of a Select List Menu

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #315784 Reply

    support-michael
    Keymaster

    Accessing Select List Menu Values

    The Select List Menu is implemented with custom HTML for the user interface and a hidden <select> component for managing the selected list values. To access the value or values in the case of a multiselection Select List Menu (SLM) you need to create a javascript function that looks up the hidden HTML <select> component and retrieves its value(s).

    In the following example, my user interface consists of a Select List Menu and a button. The button is configured to call a custom function showMenuSelection() that I created in the project’s slm-custom-action_custom.js file. This function does a quick look up of the hidden <select> control and accesses its values. The values are printed in a javascript alert() dialog.
    See attachment access-slm-values.png

    See attachment slm-custom-action.zip

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)
Reply To: Accessing Selection(s) of a Select List Menu

You must be logged in to post in the forum log in