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 / Variable not respondin...
Power Apps
Unanswered

Variable not responding to Set command

(1) ShareShare
ReportReport
Posted on by 18
Hi :)
 
I am trying to create a variable that stores the name of the person who toggles a switch. 
 
At the start of the App i initialiase a variable with: 
Set(
    varUser,
    User()
);
 
I created a Toggle input called "Toggle_LoanUser". 
I set the Oncheck value of the toggle to be "
Set(var_LoanUser , varUser.FullName)
 
I then input a label with the text value set to var_LoanUser
I would expect the the label to display the name of the user who clicks the toggle button. However the label always remains blank regardless of toggle position. 
The var_LoanUser variable is also blank regardless of the toggle position. 
 
Why doesnt the variable var_LoanUser update with the toggle switch? 
 
Any help is hugely appreciated. 
Thank you 
 
 
Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Super User 2025 Season 2 on at
    If you are getting this issue when you test the app, you will first need to run App Onstart.
    It should work fine otherwise.
    Cheers!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard