facebook

Combo Box Help!

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #340266 Reply

    chrisbrown
    Member

    How would I go about writing a java code that when a button was clicked it would reset the combobox to the default selected option. Thanks for any help!

    #340270

    Set the onClick action of your button to Run javascript code and use next snippet code:

    $(‘select[name=”<comboboxID>“] option[value=”Default Value”]’).attr(‘selected’,’selected’);
    phoneui.preprocessDOM(‘#m1-<screenId>‘);

    #340296

    chrisbrown
    Member

    Whats the screen Id? I’m really new to this

    #340312

    The screenId is the name of your .mobi design file where is located your combobox widget. To learn more how to interact with widgets please take a look at next doc: http://www.genuitec.com/mobile/docs/widgetReference/widgetReference.html

    #340333

    chrisbrown
    Member

    Thats what I thought it doesnt seem to be working. My page name is the generic “main”

    #340431

    @chrisbrown,

    I’m sharing a sample design that demonstrate how to do it. Let me know if you need further assistance.

    Attachments:
    You must be logged in to view attached files.
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Combo Box Help!

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