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 / Populate value (from S...
Power Apps
Answered

Populate value (from SharePoint list) based on Dropdown selection and input value

(0) ShareShare
ReportReport
Posted on by 145

I am trying to populate a price value from a SharePoint list onto my form when a user selects a product type from a dropdown and inputs the number of units in an input field. The price is based on a pricing tier so I will need Powerapps to pull the correct price value based on the product type and quantity inputted. I have tried to use Lookup within 'Default' from the input box where I want the value to populate but nothing is populating. I have attempted to create a new form from scratch but the same outcome.  Is there something else other than Lookup I should be using?


SharePoint list:
Pricechart: SharePoint list with pricing
Product: Vlookup column with product names

Min: minimum number of units

Max: maximum number of units

Price: price set for the product based on the min and max unit ranges

 

Form Fields:
ProductName: Dropdown combo box in form that pulls product names from vlookup column from my other 'ProductTracker' list
Units: Input field box on the form where the user will input the quantity of units needed

Priceperunits: Input field box on the form that should populate pricing based on product type selected and units inputted (should reference pricing from PriceChart SharePoint list.)

Categories:
I have the same question (0)
  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @Alanisp22 ,

    Do you want to populate price in a textinput based on the selection of product type(drop down) and the value of units(textinput)?

    Could you tell me:

    1)the fields in  'ProductTracker' list and the fields in PriceChart list and these fields data type?

    2)the relationship between 'ProductTracker' list and PriceChart list?

    I assume that:

    1)product type is a text type field in 'ProductTracker' list

    2)product type is a lookup field in PriceChart list, looks up to product type field in 'ProductTracker' list

    3)price is a number type field in PriceChart list

     

    If so, you could set like this:

    1)the drop down's Items:

    Choices(ProductTracker.'product type')

     the drop down's OnChange:

    Reset(pricetextinputname)

    2)the units textinput's OnChange:

    Reset(pricetextinputname)

    3)the pricetextinput's Default:

    LookUp(PriceChart,'product type'.Value=dropdownname.Selected.Value,price)*Value(unitstextinputname.Text)

     

     

     

    Best regards,

  • Alanisp22 Profile Picture
    145 on at

    @v-yutliu-msft You are AMAZING!!!!!! You were right on target with my field data types and your solution worked! I am soooo happy right now! Thank you! Thank you!

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard