We would like to change a text field type to password type.
Does anyone knows how to do this?
Like
Dear Rogerio,
To make a text field of a password type you need to apply following changes to the diff of the field:
Please add "protected" attribute to the controlConfig of the diff:
{
"operation": "merge",
"name": "[TextField]",
"values": {
"controlConfig": {
"protect": true
}
}
}
Regards,
Anastasia
Anastasia,
It worked perfectly.
Thanks alot for your help.
Hi Anastasia,
As per this post, I am trying to protect the password and added code as shown below but it is not working for me as mentioned. Please note that I have added below code into "viewConfigDiff" section.
{
"operation": "insert",
"name": "Input_6nf856a",
"values": {
"layoutConfig": {
"column": 1,
"row": 2,
"colSpan": 1,
"rowSpan": 1
},
"controlConfig": {
"protect": true
},
"type": "crt.Input",
"multiline": false,
"label": "$Resources.Strings.UsrConfigurationDS_UsrPassword_getnqvh",
"labelPosition": "above",
"control": "$UsrConfigurationDS_UsrPassword_getnqvh"
},
"parentName": "MainContainer",
"propertyName": "items",
"index": 1
},
Let me know if I am missing anything here.
Thanks,
Manoj