Forum Academy Marketplace Showcase Pricing Features

How to display a list with corresponding values

I will appreciate any help on this query. I am trying to set up a list of items; say Banana, Apple, Orange that display with corresponding value e.g. Banana (10), Apple (7), Orange (12). Users can display the list by selecting items from a multiple dropdown. How do I setup the values such as those attributed to the items in bracket so that they display as e.g. above when any of the items is selected from the list?

Hi there, @jpeangeles… I’m not sure I understand exactly what you are trying to do, but if I understand it at all, it sounds like an option set (with options of Banana, Apple, Orange, etc.) with an attribute on the set for each option’s value (i.e., 10, 7, 12, etc.) might do the trick here. Have you considered using an option set?


Thanks for your quick reply Mikeloc and sorry for not being so clear. Maybe I should use the real scenario; I am trying to display the number of students per country of origin in different universities such that if a user selects country “A”, “B” and “C” from a list of countries, and university “E”, from a list of universities, the number of students from selected countries in University "E"display as follows: Country “A” (10), Country “B” (4), Country “C” (6). I tried to use option sets but it didn’t work since the number of students change per university e.g. if a user selects university “F” instead of university “E”, the corresponding numbers will, obviously, be different from those displayed above. Is there a better way to do this?

Thanks for your support Mikeloc, it has worked for me.

This topic was automatically closed after 70 days. New replies are no longer allowed.