Hello guys, I was wondering if there is a way to make a combo box have a triple layout. For example in the project that I am working on, I have a form where the user inserts appointments for his patients. Power apps gives you the choice of a single or double layout for the combo box control. When I press the arrow and the patients appear, it shows their full name. What I want is something like this: Full name, Age, Address. On the Items property I have written Choices([@'Patient Transactions'].'Patient Lookup') and on Display fields the full name field. Can I achieve that with a combo box or do I have to use another control??? Thanks in advance.
Solved! Go to Solution.
Hi @nikokont :
Do you want to show 3 fields in a combo box control?
Could you tell me what is your data soucrce?Is it an entity(CDS)?Or SharePoint List?
I assume it is an entity.
First,I'm afraid that showing 3 fields in one combo box control is not available.
Secondly, I suggest you use a combination of controls instead of combo box.For example:
1\Add a textinput control-TextInput8
Default(Clear the default property)
2\Add "down" arrow
OnSelect
Set(MYVar,!MYVar) /*MYVar is my custom variable*/
3\Add a gallery(Gallery18)
Items
Choices([@'Patient Transactions'].'Patient Lookup')
Visible
MYVar
4\Add three labels into Gallery18
In addition, you can also consider creating a component:
I think this link will hlep you a lot:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Add-images-in-a-dropdown/td-p/708464
Best Regards,
Bof
Hi @nikokont ,
Not in the standard layout, but you could concatenate the two "secondary" fields with AddColumns to the Items and then display the new field as the second field.
You would need to change the Items to a "manual" lookup reflecting the original in the data source (I assume this is from another list) and the Update would become a bit more complex (would need an odata statement), but should be doable).
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @nikokont :
Do you want to show 3 fields in a combo box control?
Could you tell me what is your data soucrce?Is it an entity(CDS)?Or SharePoint List?
I assume it is an entity.
First,I'm afraid that showing 3 fields in one combo box control is not available.
Secondly, I suggest you use a combination of controls instead of combo box.For example:
1\Add a textinput control-TextInput8
Default(Clear the default property)
2\Add "down" arrow
OnSelect
Set(MYVar,!MYVar) /*MYVar is my custom variable*/
3\Add a gallery(Gallery18)
Items
Choices([@'Patient Transactions'].'Patient Lookup')
Visible
MYVar
4\Add three labels into Gallery18
In addition, you can also consider creating a component:
I think this link will hlep you a lot:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Add-images-in-a-dropdown/td-p/708464
Best Regards,
Bof
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
212 | |
194 | |
82 | |
59 | |
38 |
User | Count |
---|---|
305 | |
255 | |
120 | |
86 | |
55 |