Display a****m from "air@test136253.com" in database

I would like to display people’s email on a page, but protect the users like Ebay does it for its user who bid on items on their site. The number of asterisks would be a static number no matter the length of the email address.

Does anyone have an idea how to do this?

Hi there, @tryit4fun… do you mean something like this?

email

Best…
Mike

1 Like

By the way, what I am showing there will only mask the email address in the user interface, but a tech-savvy user would be able to get the actual email address through, for example, Chrome’s developer tools because you are not protecting the email addresses with a privacy rule, and therefore you are sending them to the browser regardless of whether or not they are viewable in the app.

The above being said, you could consider having a text field on the User data type that stores the masked version of the email address, and then you could display that field in the app while protecting the email address field via a privacy rule.

Anyway, just food for thought, and I hope it helps.

3 Likes

To make the “…” as lengthy as the email address, you can also use “email: number of characters -3”, instead of “…”.

-3 is used to adjust for the first and last letter, and the “@” symbol :wink:

Thank you for replying. I definitely don’t want to provide a user’s email address visible in developer. Thank you for reminding me of that. I am going to give your idea a try and see if this is the route I would like to implement.

2 Likes

Thank you for the reply. I like your idea in another part of my project. Cheers,

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.