cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dfin
Frequent Visitor

Dropdown default value - set to blank value?

I have an edit screen with two dropdowns controls.  The first dropdown is Client and the sceond is ClientProject.  After choosing the client, the user can seleect the specific project for the client.  The ClientProject dropdown is filtering it's list values based on the value of the Client dropdown.

 

When adding a new record, though, after I select a client, the Client Project dropdown always gets set to the first value on the list.  I would preer that it would be left blank.  Is this possible?

 

Thanks,

Dave

41 REPLIES 41
Anonymous
Not applicable

Hi and thank you for your answer, and sorry for my responding late.

 

I think I may not relate my issue in an understandable way.

 

The thing is:

The reason for me wanting to have blanks as default is that I do want my users to actually have to choose/type the data they submit. My validation works and is not an issue.

I have a form that i want to use only for creating new items in my sharepoint list. Everything is working fine.. almost... My dropdown fields are troubblesome - I got two of them (The other fields are: two "type" fields and one attachment field - these resets just fine).

 

After i submit my first form things looks fine. When I try to open my form again to make another item, my form resets all fields to my default (blanks), except for my two dropdown fields. These two fields retain values from my last input, no matter what I try, I do not really have to submit the form either, if I try to reset after just choosing a value - it stays forever.

 

I have set the default FormMode.NEW for this form, and there is no default values from Sharepoint either. So there should not really be anything from outside powerapps to cause this behaviour.

 

All the best

Henrik

 

This assumes you have a blank record in the source* used to populate your dropdown:

 Edit for clarity: I don't use the default forms, so this is how I do it. If the auto form reset does not work, I'm betting the *note below is why

Screen.OnVisible=UpdateContext({vReset:true})

Screen.OnHidden=UpdateContext({vReset:false})

Dropdown.Default=""

Dropdown.Reset=vReset

 

*The "Default" MUST be a value available within the dropdown source, otherwise it will never reset back to it. The first time a form opens it may give you a blank by default, but after that dropdown has been changed, the dropdown will only reset to a "Default" value that matches a value in the dropdown source.

I'm new to Powerapps and am having the hardest time trying to set my default values to blank.  I have the default value in my Sharepoint list set to blank and I've included a blank in my reference tables.  I have it working for one column and I thought it is because I use the following code:

If(IsBlank(ThisItem.BudgetYR),Blank(),ThisItem.BudgetYR)

 

however, I try the same code in a different column (both columns are setup as dropdowns referencing tables), but it isn't setting the default value to blank

 

If(IsBlank(ThisItem.Category),Blank(),ThisItem.Category)

 

Would you know what I'm doing wrong?

Anonymous
Not applicable

Hi @ruth

 

First, for some reason I do not know, everything seemes to work for me now.

 

My sharepoint list

Is set up to have only values I want as valid datainput - read no blanks in my SP-choices. All of my dropdownfields are required, none have any default values.

 

 

In PowerApps (I hope i dont make this messy by inserting XX where names only make sense to me)

I do use a form and I only use that form to create new items.

The defaultmode is set to "FormMode.New".

The OnReset is set to "NewForm(XX)"

My datacards have:

the Default fields set to: "ThisItem.XX",

the Update fields set to: "DataCardValueXX.Selected".

 

Then "inside" my datacards I have set the values like this:

the Items fields set to: "Choices('XX'.XX)",

the InputTextPlaceHolder or Hint text is set to something that helps the user to understand what this field is all about. And by not having the blanks as default this hint text shows in the app and I like that 🙂 ,

the dropdown datacards in my form has the Default fields blank as in I have not typed in anything here... not even BLANK(),

the DefaultSelectedItems fields are set to "Parent.Default".

 

And again.. I do not know what has happened since my last post in this thread.. but now it all of a sudden worked and has been since. There i a chance though that I may have tried to delete my old form and start over. If it is not too much trouble for you i recomend doing that.

 

I'm not good enough at reading your formulaes, so I can only hope this may help you in any way.

 

all the best

Henrik

 

@ruth I would follow @Anonymous's suggestion and start over if possible. Sometimes I think there are data we can't see tied to objects that just doesn't fix itself, or more likely for me, something I clicked on/off of and never notice again no matter how many times I go thru the settings.

 

I'm not sure how your list is designed. I think what you did was have a list for BudgetYR containing acceptable values, then your main list has a column BudgetYR which is a "Lookup" column using values from the other list? Perhaps you did something else...let us know if starting over doesn't help.

 

FYI, I tried two different methods and had no issues:

  1. Created SharePoint list with a "Choice" column called Category, entered in choices, made sure "None" was selected for default value
  2. Created list "choices" with each record being a choice(I just used Title column), and another list "base" with a column named lookup choice of type "Lookup" pointing to choices list, Title column.

Both these options work fine with the default form created when I click "PowerApps > Create an app". They reset to blank fields as expected. This is why I think starting over might be of benefit. In my #2 method (the one I think you may be attempting), the Dropdown.Default is blank and Dropdown.DefaultSelectedItems = Parent.Default

 

Hope this helps!

 

Edit: Had wrong list/column name in my explanation #2. Hope I didn't confuse

Hi, @Anonymous & @strategery, sorry to be responding so late.  I was able to get the BudgetYR and Category working only because I set a default year for BudgetYR and I did enter a blank value in the Category list - which in hindsight, I think I'd rather not have a blank, however, it's working for now.  The one field that I cannot have a blank value in the list is my Vendor field.  I'm not using a Lookup in this list as I'm storing text fields in my list.  This might be my problem. I can't use a lookup because my list resides on another Sharepoint site.  

Shanescows
Most Valuable Professional
Most Valuable Professional

Ruth here is how you can recreate LookUp columns in SharePoint using PowerApps.This works across site collections also. 

 

For setting the default blank value I usually create a - as the first item in my list of choices and use that as the default. Not perfect but better than nothing. 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training

@ruth I highly recommend you watch @Shanescows video. He covers some of the irritating quirks as well.  Similar to Shane inserting a "-" into the records, I tend to enter something like (choose one), set my dropdown Default to "(choose one)" (quotes included), then use Visibility to hide the "Save" button on my form if any dropdown = "(choose one)"

 

Example for Vendor: Set Visibility on your button to

 

Dropdown1.Selected.Vendor <> "(choose one)"

 

Example with 2 dropdowns: Set Visibility on your button to

 

(Dropdown1.Selected.Vendor <> "(choose one)") && (Dropdown2.Selected.Category <> "(choose one)")

 

 

 

@Shanescows I watched your video, good info. Here's how I tackle blanks by default, for a couple reasons...one, I have no dummy records, and two, cascading dropdowns tend to filter much faster with collections.

Screen.OnVisible = ClearCollect(tempCollection,{Vendor:""},'SPList_Vendors')

Dropdown1.Items = tempCollection

Dropdown1.Default = ""

(This creates a collection from existing data plus a record you manually entered that is blank...no blanks in actual source needed)

Hi, Shane, thanks, I do really like your videos. 

 

I'm tripping over myself here, I thought they were referring to an actual lookup on the sharepoint list vs creating a text field and creating the lookup behavior on the powerapp.

 

Thanks for your videos.  They're great!!!

Thank for a solution of blank row in collection.

 

I was looking for this all internet.

Helpful resources

Announcements

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!     Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!     Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!     UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!     European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!   Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!   For more events, click the image below to visit the Microsoft Community Days website.    

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip: Community User Groups

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution.   When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together!   Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need:  Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!

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