To mask SharePoint Title field with password field Add CEWP on your list new item page and add following script in to it
var inpColl=document.getElementsByTagName("input");
var globalvariable;
if(inpColl!=null && inpColl.length>0){
for (var i=0;i<=inpColl.length;i++)
{
if(inpColl[i].title=="Title")
{
globalvariable=inpColl[i].id;
var input=document.getElementById(globalvariable);
var input2= input.cloneNode(false);
input2.type="password";
input.parentNode.replaceChild(input2,input);
}
}
}
No comments:
Post a Comment