Skip to main content

Notifications

Community site session details

Community site session details

Session Id : fULLD/1wBFR8xmtrG5lo1W
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz โ€“ Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard