Suppose the SAIL form has password fields (type and re-type password). We know Appian doesn't have Password field, so we have to use text field for the user to enter password. The problem is that the text field will not be masked, which is a security violation.I searched the forum, rogerp63 has some solution by using:refreshAfter: "KEYPRESS",value:joinarray(repeat(len(local!password), "*"), ""),I tried it and the text will only be masked after you leave the field, so the password will still be visible while you are typing. Another problem is when you go back to the text field, then the original text will get lost. This will cause lots of confusion.Anyone has a better solution? Thanks.
OriginalPostID-178690
Discussion posts and replies are publicly visible
Sample_Password_field.txt
hi,where to place this code
this is a super old thread, so this example is most likely no longer relevant. these days the text field has a built-in masking capability.
Hi guozhangy,
You can achieve this now, with masked parameter in latest versions.
masked: true,
We have some limitation, but we can do by this and check the below code
a!localVariables( local!secret, { a!columnsLayout( columns: { a!columnLayout( contents: { a!encryptedTextField( label: "Input", instructions: "Enter a secret here", masked: true, value: local!secret, saveInto: local!secret, refreshAfter: "KEYPRESS" ) } ), a!columnLayout( contents: { a!encryptedTextField( label: "Output", instructions: "The value is displayed here", value: local!secret, readOnly: true ) } ) } ) } )