web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Editform not working -...
Power Apps
Unanswered

Editform not working - Type of DataValue card cannot change from Text input to Drop down menu

(0) ShareShare
ReportReport
Posted on by 181

Hi all,

I am beginner for develop power apps for retrieve the information from sharepoint list - "Cable" and let user to view detail and enable to edit . It has 3 screens, browse screen, detail view screen and edit screen.

In browse screen, there has the drop down menu for user to choose the cable type. It will filter and shown, user can press to view the detail information( detail view screen).

In Detail view screen, it has the edit button that redirect to edit screen for user to edit screen.

I want to change the location datavalue card from textinput to Drop down menu (yellow highlighted in edit screen photo)for user to choose and then update the list. Is it able?

If OK , how to set the drop down menu?

 

Browse screen:

AT_AlanTse123_0-1660207436942.png

detail view screen:

AT_AlanTse123_2-1660207584468.png

edit screen:

AT_AlanTse123_3-1660207756299.png

 

 

Thank you very much for your help.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AT_AlanTse123 

    1. Unlock the location card on the Edit form.
    2. Hide the textinput box inside. 
    3. Add a dropdown control that contains the locations, for example named, Dropdown1
    4. You can use either of 3 options for the Items property of Dropdown1
      1. Make a separate list of locations, (I prefer this one as you can then easily add new locations to the list)
      2. Hard code it ["Location1","Location2", etc], or
      3. if you already have all the locations in your list, Sort(Distinct(Cable,Location)).
    5. Make its Default property: Parent.Default
    6. Click on the Card itself and go to its Update Property.
    7. Delete the reference to the textinput box in the Update Property
    8.  Replace it with: Dropdown1.Selected.Value or if you have used option3 above, use Dropdown1.Selected.Result

    Your form will now save the selected value in the dropdown to your list when you submit the form. 

  • AT_AlanTse123 Profile Picture
    181 on at

    hi @Drrickryp,

     

    Thank you very much for your help. It is work.

     

    May i know that when i submit the form, it update the value successfully and back to detail view screen but it will always show that the detail of first item of browse screen, how to fix it? Can i refresh the detail view screen after the form edited?

     

    Thank you very much.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AT_AlanTse123 

    If you want the gallery to always show the newest record make its Default property

    First(Sort(Cable,ID, Descending))

  • AT_AlanTse123 Profile Picture
    181 on at

    Ok, thank you very much for your help.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard