Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to force the user to select only from the drop down

(0) ShareShare
ReportReport
Posted on by

I added a drop down and made its item as below :

["SERVICE","MINOR-REPAIR","MAJOR-REPAIR","INSPECTION","GREASING","OTHERS","BOUGHT-OUT","SUBLET-JOB"]

 

Data entry and all is working fine, but one of the user typed out some thing else apart from the above dropdown selection.

Which may create problem for reporting.

 

I want to restrict user to select only from the dropdown selection.

Please advise.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to force the user to select only from the drop down

    @MIA27 

    Don't add it. Remove the original text and replace it with the Dropdown.Selected.Value. This forces the user to use the Dropdown for the selection.

  • MIA27 Profile Picture
    on at
    Re: How to force the user to select only from the drop down

    Yes, in the update property of the card, I added EDropdown1.Selected.Value, so when the dropdown is selected, the data is considered the value for the that Textinput.

     

    It is not possible at the same update property some more coding can be done for the requirement.

    Please advise

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to force the user to select only from the drop down

    @MIA27 

    The key is the Update property of the card. Assuming the dropdown you added is called Dropdown1, the Update property should be: Dropdown1.Selected.Value. Hide the textbox in the card. It is irrelevant. Set the default property of the dropdown to Parent.Default.

    Nothing else in the card matters as PowerApps uses th Update property to enter the data.

  • MIA27 Profile Picture
    on at
    Re: How to force the user to select only from the drop down

    I am sorry that I was unable to explain in detail. I will try to provide details info why it is required to do so.

     

    I made the power app by wizard by selecting one of the list of the sharepoint, as you know it gives , 3 screens (gallery, edit and new).

     

    That list is also connected to a Access database front end, where user post data when he is in office by PC. The Access application takes care of the wrong select - as there is a built in function for the dropdown.

    MIA27_0-1658074851900.png

     

    To achieve the same , I took the Edit screen and inserted a dropdown control and connected it to the textinput control and hide the actual textinput control. Dropdown control is working fine while editing the form or adding new.

    Below is the screen shot:

    MIA27_1-1658075081556.png

     

    As the data study reports are based are this above shown list, if user type spelling error like  Services instead of Service, The Access query search and report gets disturbed.

     

    Therefore, I was looking for a solution where the user can be stopped from typing and should select only from the drop down.

     

    I hope it will be clear to you about my requirement, why it is required to do so.

     

    Kindly review my above requirement and guide me how to achieve this requirement on the edit form.

     

     

     

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to force the user to select only from the drop down

    @MIA27 

    How can they do this?  but one of the user typed out some thing else apart from the above dropdown selection.

    Don't provide them a textinput box to type in.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: How to force the user to select only from the drop down

    @MIA27 

    How can they do this?  but one of the user typed out some thing else apart from the above dropdown selection.

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard