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 / Display DataCardValue0...
Power Apps
Answered

Display DataCardValue01 if DataCardValue00 Equals to a value

(0) ShareShare
ReportReport
Posted on by 39

Hello,

 

I'm new to PowerApps and programing in general and would like some assistance.  We have a PowerApps form and I would like to accomplish the following. 

 

If datacardvalue00 selection is "Home" then the datacardvalue01 is set to "0000 Address" automatically.

If datacardvalue00 selection is "Work" then the datacardvalue01 is set to "1111 Address" automatically.

If datacardvalue00 selection is "Home1" then the datacardvalue01 is set to "2222 Address" automatically.

If datacardvalue00 has not selection then datacardvalue01 is set to "n/a" automatically.

 

Hope this makes send. 

 

 

Thank you,

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @masterp ,

    Put this in the Default of DataCardValue01 (this is syntax guidance only)

    Switch(
     DataCardValue00.Selected.Value,
     "Home",
     "00 Address",
     "Work",
     "111 Address",
     "Home1"
     "222 Address",
     Blank(),
     "n/a"
    )

    Then on the OnChange of DataCardValue00

    Reset(DataCardValue01)

     

    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.

  • masterp Profile Picture
    39 on at

    @WarrenBelz - Thank you very much for you assistance. 

     

    I changed the values to represent my values but I get this error and datacardvalue01 is not changing but datacardvalue00 reset works.  If I select Home nothing happens and this is the same if value is blank.

     

    "Expected operator. We expect an operator such as +,*, & at this point in the formula."

     

    This is what I have for Default DataCardValue01.

     

    Switch(
    DataCardValue00.Selected.Value
    "Home",
    "0000 Address",
    Blank(),
    "n/a"
    )

     

    and for OnChange Datacardvalue01

    Reset(DataCardValue01)

  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @masterp ,

    Free-typed, so watch commas (one missing after Value - now fixed).

     

    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.

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard