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 / how : OnSelect → Clear...
Power Apps
Answered

how : OnSelect → Clear InputLabel

(0) ShareShare
ReportReport
Posted on by

Hi, I have a login screen interface where users login. I want to clear PasswordLabel and UserNameLaber when they click the logout button. Could you help me for this?

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @ProtoSup,

    Do you want to clear the Text Input when clicking button?

    You can set the Default property of Text Input as:

    ""

    and set the On Select property of button as:

    Reset(TextInput5);Reset(TextInput4)

    Note that: TextInput4 and TextInput5 is my Password and UserName.

     

    Best Regards,
    Kyrie

  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @ProtoSup set those labels to variable and once they click set those variables to blank!

     

    Initially: Set(varSomething, "Login")

    After Onselect: Set(varSomething,  Blank())

  • the_dude Profile Picture
    361 Super User 2024 Season 1 on at

    Hi ProtoSup,

     

    If i understand you correctly, what you can do is:

    1. Set the 'reset'-property of the inputfields to a variable (for example varReset)

    2. in OnSelect for logging out set this var to true and back to false  (   

    Set(varReset,true);

    Set(varReset,false)
    )

     

    Kind regards, if this solved your issue please mark solved or let me know what is going wrong.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard