cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
simkessy
Level: Powered On

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
Community Support Team
Community Support Team

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.
simkessy
Level: Powered On

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,776)