Combo Box Ids

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
ekidhardt
Profound User
Posts: 25
Joined: Mon Jul 03, 2017 1:35 pm
First Name: Ed
Last Name: Kidhardt
Company Name: Conestoga Wood
City: East Earl
State / Province: Pennsylvania
Country: United States
Contact:

Combo Box Ids

Post 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?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Combo Box Ids

Post 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?
ekidhardt
Profound User
Posts: 25
Joined: Mon Jul 03, 2017 1:35 pm
First Name: Ed
Last Name: Kidhardt
Company Name: Conestoga Wood
City: East Earl
State / Province: Pennsylvania
Country: United States
Contact:

Re: Combo Box Ids

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Combo Box Ids

Post 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?
ekidhardt
Profound User
Posts: 25
Joined: Mon Jul 03, 2017 1:35 pm
First Name: Ed
Last Name: Kidhardt
Company Name: Conestoga Wood
City: East Earl
State / Province: Pennsylvania
Country: United States
Contact:

Re: Combo Box Ids

Post by ekidhardt »

Doesn't matter to me - I can run it onclick or at time of render. Which would you recommend?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Combo Box Ids

Post 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).
ekidhardt
Profound User
Posts: 25
Joined: Mon Jul 03, 2017 1:35 pm
First Name: Ed
Last Name: Kidhardt
Company Name: Conestoga Wood
City: East Earl
State / Province: Pennsylvania
Country: United States
Contact:

Re: Combo Box Ids

Post 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?
ekidhardt
Profound User
Posts: 25
Joined: Mon Jul 03, 2017 1:35 pm
First Name: Ed
Last Name: Kidhardt
Company Name: Conestoga Wood
City: East Earl
State / Province: Pennsylvania
Country: United States
Contact:

Re: Combo Box Ids

Post by ekidhardt »

Getting anywhere on adding a function that returns the Combo Box dropdown?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Combo Box Ids

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests