5E Character Create Playlist
  1. #1

    Question about dynamic combo box population

    I have 2 combo boxes.
    The first one contains a simple list.
    What I want to do is populate the second combo box based upon the selection of the first combo box.
    Is there an onChange function I can script in the first combo box and if so, what's it called and can I access the second combo box to add the item to it in this function?

    I've seen examples of using onInit to add items to a combo box dynamically. I just can't seem to find an example of what I want to do.

    Thanks.

  2. #2
    I dont believe there are too many combo box examples. Its not used very often. I really like them. The secret lies in combobox.lua. The addItem or addItems functions fill the combo box. All the tools are in its lua file.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  3. #3
    Actually I found what I was looking for.
    onValueChanged() is called when the value of the combo box is changed and then it's just a case of getting the value selected and populating the other combo box based on the value.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in