ok, so I could use this javascript code on the (for example) detailview.html page:
Code:
<script type="text/javascript" language="Javascript">
function formatUSPhoneNumber(numToFormat){
areaCode = numToFormat.substring(0,3)
prefix = numToFormat.substring(3,6)
suffix = numToFormat.substring(6,10)
return("(" + areaCode + ") " + prefix + "-" + suffix)
}
</script> then pass the phone number through this function. How do I use the function on the page?
if I do:
Code:
<td valign="top" class="tabDetailViewDL"><slot>{MOD.LBL_OFFICE_PHONE}</slot></td>
<td valign="top" class="tabDetailViewDF"><slot>document.write(formatUSPhoneNumber('{PHONE_WORK}')) </slot></td> what I get is phone number showing up as:
document.write(formatUSPhoneNumber('{3335551212}') )
any idea how I can make the phone number pass through this function on the detailview.html page? 
As you can see, I'm really not a programmer.. 
TIA
Amit Malhotra
Bookmarks