Partial Password Masking on Input Field

1
I’m looking for a way to have a fully functional input field that will do password masking on only first 5 digits of SSN and plaintext for the last 4 digits (while having the full plaintext value available for form submission). For instance, if SSN is 123-45-6789, I need to display ***-**-6789 but I still need to retain the original value to submit. Is this possible?
asked
1 answers
0

The easiest one is creating a non persistent object with a string inside. Pass the object containing the SSN to a datasource microflow. In the microflow create the non persistant object. Now use substring to cut the SSN value in two and use the replaceAll command (https://docs.mendix.com/refguide/string-function-calls#replaceall) to change all the number values for asteriks. Then combine the two again and place them inside the string of the non persistent object and let the microflow return that object.

Regards,

Ronald

 

 

 

answered