Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Auto populating and locking a dropdown

(1) ShareShare
ReportReport
Posted on by 16
Hello, 
 
I'm trying to build a survey in Power apps. This is my first app and I could really use some help please.
 
I have created the app and linked to a SharePoint list as the data source.
 
Within the survey I ask user to choose from a dropdown list of risks. The 2nd dropdown is a rating (1-3).
 
My problem is that I want the rating to be pre-populated by me, and I want it to be locked so that the user cannot edit it.
 
Please see my screen shot below.  I will have three screens similar to this for Risks # 1-3.
 
Is it possible?
 
Thank you,
Elaine 
 
 
Categories:
  • ET-04121333-0 Profile Picture
    ET-04121333-0 16 on at
    Auto populating and locking a dropdown
    @WarrenBelz  - That solved it!
     
    I set DisplayMode to DisplayMode.Disabled, that seemed to work best for my needs. 
     
    Thanks for your help :)
  • WarrenBelz Profile Picture
    WarrenBelz 145,580 on at
    Auto populating and locking a dropdown
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 145,580 on at
    Auto populating and locking a dropdown
    If you simply want 1 in the Rating, then if a Combo Box, the DefaultSelectedItems would be
    {Value: "1"}
    or if a Dropdown the Default would be "1".  
    You would also set the DisplayMode to DisplayMode.View
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
  • ET-04121333-0 Profile Picture
    ET-04121333-0 16 on at
    Auto populating and locking a dropdown
    Update:  I found the Default property and wrote the following Syntax 
     
    Choices([@'Risk Assessment risk repository'].'Rating'), Value = "1")
     
    Error message 
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard