web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / setting a default in a...
Power Apps
Unanswered

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

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,989 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

  • Verified answer
    mdevaney Profile Picture
    29,989 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,989 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?

  • mdevaney Profile Picture
    29,989 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.  

  • Verified answer
    mdevaney Profile Picture
    29,989 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,989 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard