Page 1 of 1

Combo Box Ids

Posted: Wed Jan 08, 2020 12:34 pm
by ekidhardt
Is there a function that will tell me the id of the combo box that was clicked? Like pui.currentDateField, but for combo boxes?

Re: Combo Box Ids

Posted: Wed Jan 08, 2020 2:57 pm
by Scott Klement
do you mean in an onclick event? Or, when are you planning to retrieve this?

What do you plan to use it for?

Re: Combo Box Ids

Posted: Thu Jan 09, 2020 10:15 am
by ekidhardt
Hey Scott -

Here's what I'm trying to do:

On mobile devices, style the option box in a specific way - I'd like it to take up most of the screen (done with the -combo-options class) and add a label to it so the user knows which field the options are attached to.

I need to know the input field that's connected to the option box that's being displayed.

Re: Combo Box Ids

Posted: Fri Jan 10, 2020 11:38 am
by Scott Klement
I'm lost. In your first message you said "the id of the combo box that was clicked". Now you're saying you want to style all combo boxes on mobile devices. Are you saying that you only want to style them after they are clicked?

The different events that fire have different information available to them. That's why I asked when you were running this code? Is it in an onclick event? I never got a response to that, so I'm not sure if I can suggest that info, or what else to suggest. Can you please explain WHEN you are running this styling?

Re: Combo Box Ids

Posted: Fri Jan 10, 2020 2:08 pm
by ekidhardt
Doesn't matter to me - I can run it onclick or at time of render. Which would you recommend?

Re: Combo Box Ids

Posted: Sat Jan 11, 2020 7:34 pm
by Scott Klement
I don't feel like I'm in a good position to recommend something, here, since I'm not familiar with your application.

If you want it to happen when someone clicks the item with a mouse, then do it onclick. If you want it to happen when the screen loads, do it onload (just after render).

Re: Combo Box Ids

Posted: Tue Jan 14, 2020 9:18 am
by ekidhardt
Okay - if I'm going to add the label onclick, how do I associate the popup with the clicked combo box?

get(id).comboBoxWidget.getBox() returns the input box element, is there something like this that gets me the popup element?

Re: Combo Box Ids

Posted: Wed Feb 19, 2020 11:34 am
by ekidhardt
Getting anywhere on adding a function that returns the Combo Box dropdown?

Re: Combo Box Ids

Posted: Thu Feb 20, 2020 11:57 am
by Scott Klement
If you've placed a feature request via our Support team, and want to know the status, you should e-mail them.

This is "community support", i.e. its where you can talk to other people who use the products. It is not for bug reports or feature requests, for that you need to contact the actual paid support st support@profoundlogic.com