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

Condition for Update property

(0) ShareShare
ReportReport
Posted on by 431
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,603 Super User 2025 Season 2 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
    431 on at
    @SpongYe, Thanks,
     
    The references seem correct to me?
     
     
  • Verified answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 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
    431 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard