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 / 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:
I have the same question (0)
  • 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard