facebook

Combobox to select a country and their cities

💡
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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #345497 Reply

    mories
    Member

    hi guys
    i am not a professional in programming so i need to program a combobox1 with a countries and combobox2 with a cities where if i select a country1 in combobox1 i need to appear all their cities in combobox2 without the selection mark “only appear it” so what is the best code for doing this task

    #345569

    Code_A
    Member

    I do not have code to share for you but I can share my thoughts on how to implement this and then you can search the forums for examples of “dynamically building a combobox”.

    The items in the second combobox will be dynamically loaded based on the selection made in the first combobox. Somewhere you will need to have the items you want to populate the combobox stored (e.g. text file, array, etc.). Then all you need to do is setup a function to clear the second combobox and repopulate it with the stored data. Finally, set the On Action event of the first Combobox to Run Javascript and assign the function that you created to populate the second combobox.

    That should get you started. Hope it helps. Feel free to post code if you are having trouble getting it to work.

    #345729

    Hi,

    I second Code A’s approach, this example should be helpful to learn how to populate second combobox:
    http://portal.genuitec.com/support-genuitec/viewtopic.php?p=18229#p18229

    Let us know how it goes and if you need further assistance.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Combobox to select a country and their cities

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