Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

  • the_dude Profile Picture
    361 Super User 2024 Season 1 on at
    Re: how : OnSelect → Clear InputLabel

    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.

  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at
    Re: how : OnSelect → Clear InputLabel

    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())

  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at
    Re: how : OnSelect → Clear InputLabel

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard