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 / Reveal password in card
Power Apps
Answered

Reveal password in card

(1) ShareShare
ReportReport
Posted on by 7

Hi,

 

I'm building a very simple app to look up login details for our younger students. I'm using a gallery to pull data from a spreadsheet and on the detail page I want to have a button which when pressed will display the student's password and then hide again when you let go.

 

I've tried creating an icon and attached the 'OnSelect' as DataCardValue6.visible = true - if I put the icon within the Card field, it doesn't do anything at all. If I place it outside the field then it also doesn't do anything. 

 

What would be the best way to achieve this?

 

Thank you in advance.

Richard

Categories:
  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Add a button to the screen for now we will call is Button1

    Then go to the visible of DataCardValue6 and change it to Button1.Pressed

    that is one way to do this feature. if you want to use an icon instead of a button you will need to do a trick and create a transparent button and put it on top of the icon as Icon's do not have a pressed value.

     

    if you do not want  a button you could try use a toggle to do the same thing.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @richardbjames Use a TextInput to control to display the Password and,

    1. Set its Mode to View

    2. In the OnSelect do this, If(varPasswordMode=TextMode.SingleLine, Set(varPasswordMode, TextMode.Password), Set(varPasswordMode, TextMode.SingleLine))

    3. In the Text property put this, If(varPasswordMode=TextMode.SingleLine, "Hide Password", "Show Password")

    4. In the OnVisible of the Screen, put this, Set(varPasswordMode, TextMode.Password)

    The result will be like this,

    CNT_0-1639488017329.pngCNT_1-1639488035164.png

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard