web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove specific one va...
Power Apps
Answered

Remove specific one value from Combo box

(0) ShareShare
ReportReport
Posted on by 559

Hi All,

I have a form which list all the details from a SharePoint. I have a text input field which loads the selected Id from gallery. Based on gallery selected ID that respective details will be viewed in form. I have a field called Action on RPC which when selected only as duplicate a combo box will be loaded with all the RPC Id's from the SharePoint list.  My requirement now is For eg.  when the  text input field has Id as 7(which will load from the gallery automatically when selected) the combo box should omit the selected Id and should list the other ID values. I am not sure how it can be done.. Any suggestions or help on this.

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at

    Hi @Uthhra,

     

    Let's say your selected ID is stored in a variable called 'varSelectedID'. In that case, the 'Items' property of your combo box would be:

    Filter(DataSource, IsBlank(varSelectedID) Or ID <> varSelectedID)
  • Sri Profile Picture
    559 on at

    Hi @Akser 

    My items property of combo box is:

    'RPC - Request Form'.'RPC ID'

  • Akser Profile Picture
    1,546 Moderator on at

    ?

    Filter('RPC - Request Form', IsBlank(varSelectedID) Or 'RPC ID' <> varSelectedID).'RPC ID'

     

  • Sri Profile Picture
    559 on at

    @Akser ,

    It worked perfectly. Thank you so much. Can we add two field values to display in combo box. For eg ( Id -3 and description -  new change). Can I display both in a combo box s (3 - new change)

  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at

    Sure, that's why I did not refer to a specific column in my initial response. 

     

     

    AddColumns(
    Filter('RPC - Request Form', IsBlank(varSelectedID) Or 'RPC ID' <> varSelectedID),
    "SearchColumn",
    $"{'RPC ID'} - {Description}")

     

    You need to make a couple changes in your combo box settings (E.g. Set the newly added 'SearchColumn' as your 'DisplayField' and 'SearchField'). 

  • Sri Profile Picture
    559 on at

    @Akser ,

    I added the above code and I'm getting an error stating 

    unexpected character. the formula contains 'CurlyOpen' where 'ParenClose' is expected

  • Akser Profile Picture
    1,546 Moderator on at
    AddColumns(
    Filter('RPC - Request Form', IsBlank(varSelectedID) Or 'RPC ID' <> varSelectedID),
    "SearchColumn",
    $"{'RPC ID'} - {Description}")

     

  • Sri Profile Picture
    559 on at

    @Akser ,

    Thanks a lot. It worked perfectly.

  • Sri Profile Picture
    559 on at

    @Akser 

    Listing is happening in combo box but while submitting its not saving and showing a delegation warning.

  • Akser Profile Picture
    1,546 Moderator on at

    Since the setup of your combo box changed, you should also adjust your Patch. For example, this is how you get the ID of the selected item on your combo box: 

    NameOfYourComboBox.Selected.'RPC ID'

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard