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 / Condition for Update p...
Power Apps
Answered

Condition for Update property

(0) ShareShare
ReportReport
Posted on by 442
New to this, and this is probably simple, but I can't figure it out.
 
I am building a simple form from a Sharepoint list. I want Datacard4 Update property to be 
  1. equal to Label5 text, if selected value in dropdown DataCardValue7 is "A"
  2. but equal to Label5_1 text, if selected value in dropdown DataCardValue7 is "B"
  3. or else empty
I have tried this on DataCard4 Update property. There is no error, it just doesn't do anything.
If(DataCardValue7.Selected.Value="A";Label5.Text;DataCardValue7.Selected.Value="B";Label5_1.Text;"")
Categories:
I have the same question (0)
  • Suggested answer
    SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at
     
    This should work correctly.
    Please double-check that DataCardValue7, Label5, and Label5_1 are correctly referenced and that their values are as expected.​​​​​​
    If(
        DataCardValue7.Selected.Value="A";
        Label5.Text;
        DataCardValue7.Selected.Value="B";
        Label5_1.Text;
        ""
    )
    
    If the formula doesn't produce the expected result, it likely means that DataCardValue7 does not match "A" or "B", causing the default value to be used.
     
    Hope this helps.
     
  • MM-05080756-0 Profile Picture
    442 on at
    @SpongYe, Thanks,
     
    The references seem correct to me?
     
     
  • Verified answer
    SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at
    That is correct.
     
    The Update property only works when the forms is submitted so the correct information goes into your datasource.
     
     
    If you want to see the results of the If function you also need to put it in the Value property of the textinput control.
     
    Hope this give you some clarification.
     
  • MM-05080756-0 Profile Picture
    442 on at
    THank you, Now I understand, and it works.
    I will hide DataCard4, so I do not need the value to be visible.
    Case closed :)
     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard