locked
How can I trim a string in MSCRM 2013 using java script? RRS feed

  • Question

  • Example I get the value of a string from a field say qwe123 and I want qwe ? 
    Friday, February 10, 2017 12:42 AM

All replies

  • This looks more like a javascript question rather than a CRM question. Anyway you can use below:

    var fieldValue= "qwe123";
    var newValue = fieldValue.substring(0, 3);


    Sachith Chandrasiri

    Friday, February 10, 2017 2:21 AM