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 / How to filter form bas...
Power Apps
Answered

How to filter form based on the combobox filter

(0) ShareShare
ReportReport
Posted on by 27

Hi Team,
Source Data- 

TableA
StockName 
TataMotors 
Infosys 
Relience 
IndianOil 
ITC 
TATaSteel 

 

Table B
StockNameExternalValueInternalValueDate
TataMotors204null11/1/2022
Infosys230null11/1/2022
Relience450null11/1/2022

 

Requirement-

I have created a form like 

if user selected tatamotors from the combox then he may add the value in internal value input field and once the hit to submit button then it will update that perticuler field. 

second option'- if user select ITC from the combox then it will filter the form and use will see the  null values for both internal and external logically because we dont have those stock in table B but user can add the values in  internal and external field

 

Date11/1/2022
  
StockNameComboxfilter
  
ExternalValue204
InternalValueText Input field
  
 Submit button



Thanks

Categories:
  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @anshenterprice ,

    Do you want to update them to Tb2 when there is no option for Tb1 in Tb2?
    You can create a form to filter Tb2 with the options of Tb1 on the item property of the form, and set the default mode of the form to new if the query is empty, otherwise to edit, so that you can modify the value of the table in edit mode.
    I did a test for your reference, my data source is in Sharepoint.

    First(Filter(list2,Title=ComboBox1.Selected.Value))
    If(IsBlank(First(Filter(list2,Title=ComboBox1.Selected.Value))),FormMode.New,FormMode.Edit)
    If(IsBlank(First(Filter(list2,Title=ComboBox1.Selected.Value))),ComboBox1.Selected.Value,Parent.Default)
    vdezhilimsft_0-1667296321799.png
    vdezhilimsft_1-1667296321801.png
    vdezhilimsft_2-1667296321802.png

    Best Regards,

    Dezhi

  • anshenterprice Profile Picture
    27 on at

    @v-dezhili-msft 
    Can you please tell me the form datasource property that should be list2?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard