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 / Using form Combobox fo...
Power Apps
Answered

Using form Combobox for text field - datacard update fails

(0) ShareShare
ReportReport
Posted on by 523

I am attempting to create an autocomplete on a text input box on a form. As such, I have replaced the text box with a combobox. I have set the items property of the combobox to:

[@Projects].'Customer'

and the update property of the datacard to:

If(IsBlank(DataCardValue36.Selected.'Customer'),DataCardValue36.SearchText,DataCardValue36.Selected.'Customer')

This all seems to work.

However, I would also like to limit the display to Distinct values in the combobox. But when I change the items property to:

Distinct([@Projects].'Customer',Customer)

Then the update property fails with "the function if has some invalid arguments."

Can anyone guide me how to fix the code in the update property of the datacard?

Categories:
  • Verified answer
    Medoomi Profile Picture
    523 on at

    My bad, I think I found the problem. The code should be as follows:

    If(IsBlank(DataCardValue36.Selected.Result),DataCardValue36.SearchText,DataCardValue36.Selected.Result)

  • Mari Profile Picture
    Microsoft Employee on at

    Thanks for sharing your findings!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard