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 / 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,841 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard