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 / Dropdown sets variable...
Power Apps
Answered

Dropdown sets variable after second selection

(0) ShareShare
ReportReport
Posted on by 183

Hi All,

 

I have a simple dropdown which is populated by an array.  I am trying to set global variables based on the selection of the drop down.  For testing I have set 3 text input default values to the global variable.   During testing I have to select the dropdown item twice before it populates the input text.

 

If(
Dropdown2.Selected.Value = "Refined Knowledge Login/Access",Set(varDDS,{Subject: "New RK Login Access", Email: "EcolabCDS@service-now.com", Message: "Please describe your need. New access, login problem or anything else."}),
Dropdown2.Selected.Value = "3D Trasar controller connectivity to RK", Set(varDDS,{Subject: "NEW RK 3DT connectivity", Email: "EcolabCDS@service-now.com", Message: "Please detail customer and site name, and controller details (serial #, asset name, etc.). What issue are you facing in RK?"})
,Set(varDDS,{Subject: "Subject", Email: "Email", Message: "Message"})
)

 

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,636 Super User 2026 Season 1 on at

    I assume you have set your code as the OnSelect property, as I have the same issues when doing that. However, if you use the same code to set the OnChange property, the variable is updated immediately.

  • burliad Profile Picture
    183 on at

    That was it, knew I was overlooking something small.  Thanks!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard