
Are you trying to do something with a password for the Portal or is it for another System?
The general process as described in that post is how you would do it for another System and is correct
// To apply the mask. Depending on where you place it the following may also need to be wrapped in <script> tags
$( docutment ).ready(function() {
$("#yourfields_Logical_name_here").attr("type", "password");
});
// yourfields_Logical_name_here part will be something like #new_testcolumn
(you may actually have 2 fields one for the raw password, what you mask on the website, and one for the Hashed password that you do not expose on the site. Run a plugin as 'pre operation' create/update - take the Raw password, hash it and then clear the raw field and update the hash field in the plugin doing so you can allow the user to update the Raw field without exposing the Hash)