Notifications
Announcements
I'm trying to set a default for a field in a power app form. Below is the syntax I'm trying. Does anyone else have the right syntax? The field in sharepoint is a choice field with options choose one, yes, no
@dmclaughlin
I think you are very close here 🙂
Please try replacing this code
Value("Choose one")
With this code instead
{Value: "Choose one"}
If this does not work can you please show a little more of your screen? I would like to know what property you are putting this code into and what control? (e.g. ComboBox?)
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
I'm putting in the default property.
Is there a book or anything that documents all of these properties and syntax required?
I really appreciate your help
I was working a little bit too fast and gave you the wrong suggestion 😋
Clear the Default property of any code and leave it blank
Then put this code in the DefaultSelectedItems property of the ComboBox 😁
If(IsBlank(DataCardValue68.Selected.Value), ["Choose one"], Parent.Default)
I've just been using the online documentation. It doesn't answer every question but it does answer many. Here are my 4 most used resources.
Controls & Properties https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/reference-properties… Formulas https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/formula-reference… Delegation https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview… Delegation (SharePoint) https://powerapps.microsoft.com/en-us/blog/sharepoint-delegation-improvements/…
Your question here was something I had to learn by trial and error...
So that last one didn't work... I attached the property and my formula.. anything look wrong to you?
Your screenshot looks the same as before. See my instructions here: https://powerusers.microsoft.com/t5/Building-Power-Apps/setting-a-default-in-a-powerapp-form-for-a-sharepoint-list/m-p/490915/highlight/true#M148483
Not sure what you need to see.. this is a snipit of the datacard and the property default and the formula.
I gave you some revised instructions earlier in the thread. Here they are again 🙂
Then put this code in the DefaultSelectedItems property of the ComboBox
You have been a life saver
No problem at all. That's what the forums are here for!
If you could accept my post as the solution I would be grateful. Please mark the one that gave the answer 🙂
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 793 Most Valuable Professional
Michael E. Gernaey 333 Super User 2025 Season 2
Power Platform 1919 268