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 / Auto populate field
Power Apps
Answered

Auto populate field

(0) ShareShare
ReportReport
Posted on by

Hello,

 

Scenario:

 

Working with two data sources within a new submit form. The main data source is a SharePoint list and the secondary is a SQL table. When a number is entered into field "A", Filed "B" (ComboBox) is auto populated with all SQL table rows associated with that number. When the user chooses a value in filed "B" (ComboBox), Field "C" should be auto populated with a value from the Quantity column in the SQL table in that same row.

 

"PartNumb3" is the ComboBox which determines what the value will be in field "C" but for some reason does not like the equals sign. 

 

Below is the syntax for field "C":

If(Form1.Mode=FormMode.New, LookUp('[dbo].[tblTable01]',ReAuthNum=DataCardValue10.Text && Item = 'PartNumb3',RecQuantity),ThisItem.'Qty.')

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @ShadowTech .

    You need to refer to the combo box selected item, not the field in it

    If(
     Form1.Mode=FormMode.New, 
     LookUp(
     '[dbo].[tblTable01]',
     ReAuthNum=DataCardValue10.Text && 
     Item = ComboBoxName.Selected.xxxx
     ).RecQuantity,
     ThisItem.'Qty.'
    )

    with xxxx being the valid output from the combo box (Value/Result/FieldName depending on the Items )

     

    Please click Accept as solution 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 Thumbs Up.

  • ShadowTech Profile Picture
    on at

    @WarrenBelz Yeah, I was missing the ".Selected.Value" portion.

     

    Thanks again for your help Warren!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard