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 the default va...
Power Apps
Answered

Setting the default value for a Sharepoint Choice field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

I have a PowerApp form connected to a SP list. I want to force the value of a choice field on the form. The defualt value will be a valid choice on the SP list. 

Categories:
  • AndySid Profile Picture
    165 on at

    Hi,

    To set the  default value for a dropdown, use the default value in advance. See pic below. In this case I set it to 22750

     

    Please mark as a solution if works. (:

    Capture.PNG

     

  • kywest Profile Picture
    Microsoft Employee on at

    This did not work for me. I attached an error message that it gave me when I tried to write "Template Update" as the default. I am not sure how to past pictures in this message box so I has to attach. 

     

  • Verified answer
    xzDan Profile Picture
    350 on at

    Having went through this trouble myself, I reccomend setting a variable to the default that you want, and then setting the combobox's default to that variable.

     

    Like, OnStart: Set(var_default,"myvalue")

    Then set the combo box default to {Value: var_default} or something

  • kywest Profile Picture
    Microsoft Employee on at

    I like this idea but where do I find the OnStart action? I do not see one on the form or screen level? Could I do OnVisible on the screen the form is on? 

  • AndySid Profile Picture
    165 on at

    is Tmplate Update in your item source? Try in quotes, "Template Update"

  • xzDan Profile Picture
    350 on at

    Yes you can do it onvisible or whenever.

  • kywest Profile Picture
    Microsoft Employee on at

    Do you know a way to lock the field so the user of the form cannot change it. I have it selected when they enter the form but they can change it. At first I set the field visible = false but then it gives an error when the user submites the form. I need to either lock the field with my default value or make it invisible. 

  • xzDan Profile Picture
    350 on at

    You can set its displaymode to disabled

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard