Should .startsWith method be working for string calculations?

Comments

2 comments

  • Rainer Grabowski

    Hi Dirk,

    ".startsWith()" was introduced with the JavaScript version ECMAScript 6, but Podio calc fields are using ECMAScript 5 - so this method isn't available in Podio (= undefined function).

    But you can use .charAt(0) instead

    inactive.chartAt(0) == noprog  || inactive.chartAt(0) == change || inactive.chartAt(0) == lost ? 1 : 0;

    Rainer

    1
    Comment actions Permalink
  • Dirk Spannaus

    Rainer - thank you very much! I had high hopes that you'd answer me. :D

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk