locked
First character to uppercase and the rest to lowercase RRS feed

  • Question

  • Hello,

    Maybe someone can help me to make this line suitable for CRM 2013

    var b = crmForm.all.middlename.value.substr(0,1).toUpperCase() + crmForm.middlename.value.substr(1).toLowerCase();

    I tried this:

    var b = Xrm.Page.getAttribute("middlename").value.substr(0,1).toUpperCase() + Xrm.Page.getAttribute("middlename").value.substr(1).toLowerCase();

    Thank you

    Regards,

    Jan

    Thursday, October 17, 2013 9:36 AM

Answers

All replies