Skip to main content

Timeline for PII Preference Center field masking

Current License: CC BY-SA 4.0

10 events
when toggle format what by license comment
Feb 6, 2019 at 5:24 comment added Tom Callahan My ampscript block is about to double in length...
Feb 6, 2019 at 5:23 comment added Lukas Lunow Ye, indeed. But you need to check, on form post, if new values differ from the ones with asterisks, before you upsert the given field
Feb 6, 2019 at 5:22 comment added Tom Callahan So, what you're suggesting is creating placeholders for each value like J*** & S**** using ampscript. Then passing any appended values to the placeholders back through ampscript as new value upsert. Right?
Feb 6, 2019 at 5:18 comment added Lukas Lunow Well - here the field type is of course less important, as the plain text values never reach the source code of the page. My example is just to illustrate, that using type=password does not prevent the PII from being visible in source code - only replacing the string with placeholders, using backend (e.g AmpScript) does so.
Feb 6, 2019 at 5:11 comment added Tom Callahan It's still of type="password" though? I guess I was under the impression that the HTML handling defaulted to straight **** without customization.
Feb 6, 2019 at 5:08 comment added Lukas Lunow Hi Tom. This is exactly why I have put my second example there, where the value of the field is replaced by either asterisks or, if you prefer - a single letter and asterisks. Doing this in AmpScript instead of relying on front end is the only way of ensuring the content remains hidden.
Feb 5, 2019 at 23:40 vote accept Tom Callahan
Feb 5, 2019 at 23:40 comment added Tom Callahan That does answer the question, however, it someone toggles the type back to text, they'll be able to see it. Thinking of using placeholder substring with the first letter/number revealed. I think it's a mix of substring, replace and concat. Thoughts?
Feb 5, 2019 at 19:53 history edited Lukas Lunow CC BY-SA 4.0
added 407 characters in body
Feb 5, 2019 at 19:40 history answered Lukas Lunow CC BY-SA 4.0