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 / Dropdown List from Sha...
Power Apps
Answered

Dropdown List from Sharepoint auto fill text when item is selected?

(0) ShareShare
ReportReport
Posted on by 29

Hello, 

 

I have been struggling ith this one for a while so any help would be greatfully recieved.

I have created a 'JobTypes' dropdown list from a Sharepoint list with two columns - 'JobTypes' and 'Price'

I want a text box next to it to auto populate the 'Price' Value. 


ddname.selected.result, Price does not work and I'm not sure why. 

thank you in advance for any suggestions.

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @bluelemon247 

    What is your Items property for your Dropdown control?  

    I am guessing you are using a Distinct function in it as you reference a ".Result" in your post.

    What you would want to do is have your Items property be the JobTypes by itself.  Then your dropdown will have the other columns that you want - ddname.Selected.Price will be there as well.

     

    I hope this is helpful for you.

  • rsaikrishna Profile Picture
    3,703 on at

    @bluelemon247 

     

    In the Price text box, default property, you can try the following formula:

    LookUp(<SharePointList>,JobTypes=ddname.Selected.Value).Price

     

    Share your SharePoint list schema information : What type of columns both JobTypes and Price. Is JobTypes a choice column (single selection)?

    Also, in the power app, drop down for JobTypes - is it populated from choice column or hard coded values or from another list?

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • bluelemon247 Profile Picture
    29 on at

    Thank you for the super speedy reply - The column for JobType is 'single line of text' and the Price column is value. 

    Where you hav e put <SharePointList> is this where a URL goes? Sorry I'm basically a complete beginner learning from scratch. 

     

    Kind regards

    Kate

  • bluelemon247 Profile Picture
    29 on at

    Thank you for your quick reply - I am using distinct function as the data form method doesn't work for me. Happy to try other methods if this would be better. 

    I have changed the dd to 'jobtypes' as suggested but now the dd seems broken and is not coming up with any results.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @bluelemon247 
    So this is not unusual for dropdowns.  First, make sure the the Value selected in the properties is your JobType.

    RandyHayes_0-1606753998595.png

    Once you convert to the list as the item source, it usually picks some column that displays nothing.

     

    See if that clears it up for you.

  • bluelemon247 Profile Picture
    29 on at

    Screenshot 2020-11-30 at 16.39.53.png

    So it doesn't seem to want to cooperate - once I changed the dd 'items' input to Distinct(jobTypes) (not Distinct(jobtypes,title) the Value greyed out but before it would still only give me the option of 'Result' 

    Quite happy to start this bit from scratch in another way if there's another solution 

     

    Kind regards

    Kate

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@bluelemon247,

    Based on the issue that you mentioned, do you want to populate the TextInput control based on the Dropdown selected?

    Could you please tell me that if both of the 'JobTypes' and 'Price' are Text type?

    I think there is something syntax wrong with your Distinct() function.

    I have a test on my side, please take a try as below.

    In my scenario, I have 2 Text columns, 'JobTypes' and 'Price'.

    Set the Items property of the Dropdown as below:

     

    Distinct(UploadVedio,JobTypes)

     

    Set the Default property of the TextInput control as below:

     

    LookUp(UploadVedio,JobTypes=Dropdown1.Selected.Result,Price)

     

    Note: The 'UploadVedio' is my SP list name, please replace it with yours.

    69.png

    Please check the screenshot and take a try.

    Hope it could help.

    Best Regards,

    Qi

  • bluelemon247 Profile Picture
    29 on at

    Hi Qi,

     

    This is exactly it! Thank you for solving my problem 😄

     

    Kind regards

    Kate

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard