Page 1 of 1

Collapsible Component Help

Posted: Mon Sep 08, 2014 3:59 pm
by Brett Gregory

How do I get the value, that being the text, of the selected item in the collapsible component?

I have placed the collapsible component on my UI and am using a list service to display a few options for the user to choose. The list service is working fine. However, I need to get the value of what the user chooses and place that into a local variable, any ideas?


Collapsible Component Help

Posted: Mon Sep 08, 2014 5:48 pm
by Kateryna Grynko

Dear Brett,

Could you please clarify how you output data, via list service?

Is it a collapsibleSet with its own list inside each group and you need to get a name of an open group?

Or do you need to get a selected item from a group list?


Collapsible Component Help

Posted: Mon Sep 08, 2014 6:28 pm
by Brett Gregory

well for example, Appery has a tutorial where it shows you how to create an app with a user registration, and after the use logs in they can add items which are stored in a database.
Tutorial: http://devcenter.appery.io/tutorials/...

Instead of the list component I am using the collapsible component. Now what i need to do is after the user has selected "an item" from the collapsible component, i need to take what is selected and store it into a local variable so that I can use it later.

Thanks!


Collapsible Component Help

Posted: Mon Sep 08, 2014 7:05 pm
by Kateryna Grynko

Hi Brett,

Could you please also post a screenshot of mapping?


Collapsible Component Help

Posted: Mon Sep 08, 2014 7:09 pm
by Brett Gregory

Collapsible Component Help

Posted: Mon Sep 08, 2014 7:59 pm
by Kateryna Grynko

Hi Brett,

As I can see in your screenshot, you have a Select component (mobileselectmenu_34-0), not exactly the Collapsible one.

You would need to add one event listener and set local storage variable with the selected item value like in the following screenshot:
Image