Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

Like (0) ShareShare
ReportReport
Posted on 6 Mar 2020 13:48:05 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

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 06 Mar 2020 at 15:34:59
    Re: setting a default in a powerapp form for a sharepoint list choice field

    @dmclaughlin 

    I'm not sure why this would be appearing.  The code ["Choose one"] is a Table...

  • dmclaughlin Profile Picture
    347 on 06 Mar 2020 at 14:57:10
    Re: setting a default in a powerapp form for a sharepoint list choice field

    Its not liking the ["Choose one"]

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 06 Mar 2020 at 14:55:26
    Re: setting a default in a powerapp form for a sharepoint list choice field

    @dmclaughlin 

    Which part of the code is underlined in red in the formula bar above?

  • dmclaughlin Profile Picture
    347 on 06 Mar 2020 at 14:53:21
    Re: setting a default in a powerapp form for a sharepoint list choice field

    Actually it gets error 'invalid argument type , expecting table value.    

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 06 Mar 2020 at 14:46:47
    Re: setting a default in a powerapp form for a sharepoint list choice field

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

  • dmclaughlin Profile Picture
    347 on 06 Mar 2020 at 14:35:40
    Re: setting a default in a powerapp form for a sharepoint list choice field

    You  have been a life saver

  • Verified answer
    mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 06 Mar 2020 at 14:31:25
    Re: setting a default in a powerapp form for a sharepoint list choice field

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

  • Verified answer
    dmclaughlin Profile Picture
    347 on 06 Mar 2020 at 14:29:34
    Re: setting a default in a powerapp form for a sharepoint list choice field

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

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 06 Mar 2020 at 14:26:52
    Re: setting a default in a powerapp form for a sharepoint list choice field

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

  • dmclaughlin Profile Picture
    347 on 06 Mar 2020 at 14:25:32
    Re: setting a default in a powerapp form for a sharepoint list choice field

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

๐ŸŒธ Community Spring Festival 2025 Challenge Winners! ๐ŸŒธ

Congratulations to all our community participants!

Warren Belz โ€“ Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Communityโ€ฆ

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 274 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 142

#3
stampcoin Profile Picture

stampcoin 123

Overall leaderboard
Loading started