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 / Returning a null/blank...
Power Apps
Answered

Returning a null/blank vlaue for a dropdown

(0) ShareShare
ReportReport
Posted on by 210

I have a dropdown that is using this code 

Office365Users.SearchUser({searchTerm: TextInput2.Text})

and it is connected to a text input. I had to do it this way b/c we have over 100+ people so to allow all the employees to be found i had to turn it into a search. My issue here is sometimes people may not need to put an employee name down. For instance this dropdown i have is called Referred By so sometimes a person is not referred by anyone. So the field needs to be blank when it is sent to the sharepoint list. What is currently happening is if i dont search for a name the first item that is in the dropdown will pop up for the saved result in the sharepoint list. I saw people say add a blank space in your list but I am using AD so I can just add a blank account. Maybe there is a way to add additonal items to the dropdown without effecting AD?

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @alex5p 

    Changing these values of the dropdown would allow you to start with a blank selection.  Does this work for you?

     

    AllowEmptySelection:  true

    Default: leave this field blank

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Also, you don't have to have a search input, you can just use the following to return all. Office365Users.SearchUser({searchTerm:"",top:500})

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard