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 / setting a default in a...
Power Apps
Answered

setting a default in a powerapp form for a sharepoint list choice field

(0) ShareShare
ReportReport
Posted on by 347

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

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

    @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."

  • dmclaughlin Profile Picture
    347 on at

    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

    property.JPG
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    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)

     

     

    ---
    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."

  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    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 docs.microsoft.com/en-us/powerapp
    Formulas
    docs.microsoft.com/en-us/powerapp
    Delegation
    docs.microsoft.com/en-us/powerapp
    Delegation (SharePoint)
    powerapps.microsoft.com/en-us/blog/sha

     

    Your question here was something I had to learn by trial and error...

     

  • dmclaughlin Profile Picture
    347 on at

    So that last one didn't work... I attached the property and my formula.. anything look wrong to you?

    property.JPG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    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

     

    ---
    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."

  • Verified answer
    dmclaughlin Profile Picture
    347 on at

    Not sure what you need to see.. this is a snipit of the datacard and the property default and the formula.  

    newatt.JPG
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    I gave you some revised instructions earlier in the thread.  Here they are again 🙂

     

     

    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)

     

    ---
    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."

  • dmclaughlin Profile Picture
    347 on at

    You  have been a life saver

  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    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 🙂

     

    ---
    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."

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard