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 / Set Variable - On Chan...
Power Apps
Answered

Set Variable - On Change - IF Value Equals X

(0) ShareShare
ReportReport
Posted on by 68

Is it possible to only set a variable ONLY if the selected item of a dropdown is equal to a certain value?

Here is what I have working:

 

CrimsonCrayon_0-1655238808289.png

 

When changing the "Request Type", the "Carbon Copy" box gets populated by the globally set varQADLs. However I would like for it to set this if the "Request Type" is ONLY "QA Request" ... otherwise clear it.

Can this be done in the "On Change" setting of the "Request Type" dropdown box?

 

Categories:
  • Verified answer
    MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    If(RequestType = "QA Requests", Set(variable, value), Set(variable, Blank()))

     

    Something like this will work...

  • CrimsonCrayon Profile Picture
    68 on at

    That works perfectly.

    Thank you!! 

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Glad I could help 👊

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard