cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Combobox allowing existing records to be selected again

I have a combobox on my form. When I edit a SharePoint item the form is displaying the selected items correctly but the dropdown allows me to select those items again. Therefore the same record is displayed twice in the box but only the newly selected records are saved back to the list. 

 

How do I prevent selected items from being selected again? 

image.png

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Combobox allowing existing records to be selected again

Hi @simkessy ,

 

What is the column type of this column? At first, I thought it is a multiple value enabled Person and Group field, but I just tested and got the different result. 

 

For example, for below multiple value enabled Person and Group field, I have "Mona" already in existing item. But after I search for Mona again, and select this person, it will be deleted as 2nd screenshot shows.

 

Capture.JPG

 

3.JPG

 

Did you use other data source as the options for this combo box? If so, how did you set this?

 

Please also share the Items property and other related settings of this combo box control.

 

Regards,

Mona

 

 

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Combobox allowing existing records to be selected again

The original source is a multi-lookup field but the items equation looksl ike this: 

 

AddColumns(AvailableUsers, "Subtext", EmailAddress & " | Active: " & ActiveContract.Value & " | Age: " & age, "ActiveStatusText", ActiveContract.Value)

 

On application start, I do this: 

 

ClearCollect(
    UserActiveCount,
    Filter(
        AddColumns(
            GroupBy(
                Filter(Tasks, "Active" = status),
                "userText",  
                "Count"
            ), 
        "Active Count", 
        CountRows(Count)
        ), 
        'Active Count' < 3
    )
);


If(CountRows(UserActiveCount) = 0, 
    ClearCollect(AvailableUsers, ChildList)
,
    ClearCollect(AvailableUsers, Filter(ChildList, Title in UserActiveCount.userText ))
)

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,946)