Getting highlighted item in ComboBox

  1. #1

    Getting highlighted item in ComboBox

    Hi,

    I would like to know if there is a way I could get the value of the highlighted item in a ComboBox in javascript.


    Click image for larger version. 

Name:	highlight.png 
Views:	12 
Size:	8.4 KB 
ID:	15061

    For example, I would like to get the record "+1684"

    Thanks.
  2. #2
    Hi @EnZo,

    Please use:
    var picker = App.ComboBox1.getPicker(),
        record = picker.getRecord(picker.highlightedItem);
    
    alert(record.data[App.ComboBox1.displayField]);
  3. #3
    Thank you so much @Daniil. It works perfectly.

Similar Threads

  1. [FIXED] [#524] [#528] Item isn't highlighted in MultiCombo
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Jul 22, 2014, 11:49 AM
  2. Replies: 4
    Last Post: Jan 21, 2013, 7:23 AM
  3. Replies: 17
    Last Post: Dec 17, 2012, 11:58 AM
  4. [CLOSED] storeItem (the currently highlighted item) for charttips
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 29, 2012, 7:16 AM
  5. [CLOSED] Always selected Item is nothing for combobox as menu item
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2011, 4:51 PM

Posting Permissions