Hi,
I am trying to convert the Item to Initcap , using onchange fuction, to UpperCase works fine,
but I did not find to Initcap,
so I created the JavaScript code in the html header page :
<script type="text/javascript">
function initCap(str) {
/* First letter as uppercase, rest lower */
var str = str.substring(0,1).toUpperCase() + str.substring(1,str.length).toLowerCase();
return str;
}
</script>
in the Item P31_PROJETO_CLIENTE
in the form attribute html :
onchange="initCap('P31_PROJETO_CLIENTE');"
but nothing is change after enter data in P31_PROJETO_CLIENTE,
What I am doing wrong ?
thank you.