cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gazzo1967
Impactful Individual
Impactful Individual

Custom Entries in a Combobox Galleries

Hi
In a Form element you can customise the Combobox to accept new 'choices' to be added to the list for next time selection usage.

Can this be done in a Gallery and patching back to sharepoint list?

If so how? 🙂

Thanks in advance Gary

1 ACCEPTED SOLUTION

Accepted Solutions
gazzo1967
Impactful Individual
Impactful Individual

OK after much digtging around i found a work around for this.
I couldn't get it to work on a gallery but what i did was use the create app wizard from sharepoint list.
On the edit form

Select the card you want to update with the combobox in it  the following on the UPDATE part of the card.
If(
!IsBlank(DataCardValue24.Selected),
DataCardValue24.Selected,
If(
!IsBlank(DataCardValue24.SearchText),
{
Value: DataCardValue24.SearchText,
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
},
Blank()
)
)

This then allows you to type in your own custom entries which will then be available for the selection.

View solution in original post

2 REPLIES 2
BCBuizer
Super User
Super User

Hi @gazzo1967 ,

 

I would imagine that you add a "add option" value to the Items of your ComboBox. The OnSelect property for that ComboBox then checks if the selected value is "add option" and if so, make a popup visible that contains a TextInput and a Submit button. After filling out the TextInput, the OnSelect of the Submit button should indeed patch the Text from the TextInput to the data source and somehow set this value as the selected value for the ComboBox.

 

Hope the above makes sense, but if you run into issues, please let me know.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
gazzo1967
Impactful Individual
Impactful Individual

OK after much digtging around i found a work around for this.
I couldn't get it to work on a gallery but what i did was use the create app wizard from sharepoint list.
On the edit form

Select the card you want to update with the combobox in it  the following on the UPDATE part of the card.
If(
!IsBlank(DataCardValue24.Selected),
DataCardValue24.Selected,
If(
!IsBlank(DataCardValue24.SearchText),
{
Value: DataCardValue24.SearchText,
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
},
Blank()
)
)

This then allows you to type in your own custom entries which will then be available for the selection.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,088)