Announcement

Collapse
No announcement yet.

Formula Proper for string?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Formula Proper for string?

    Hi there,

    I'm looking for the Proper function in Espo Crm. Basically, I would like to capitalize the first letter of each word and put in lower case the rest.

    Based on the Documentation, Espo offers only the following functions:
    • string\lowerCase
    • string\upperCase
    Do you have an idea why Espo doesn't offer this formula?

    ThanksTweakbox
    Last edited by CaspianAugust; 02-02-2021, 04:33 PM.

  • #2
    Hello,

    https://forum.espocrm.com/forum/gene...per-for-string


    but you must first lower .. then so

    return ucwords( strtolower($string));


    PS : work with v5.9.x ... maybe with v6.x
    Last edited by item; 02-01-2021, 10:14 PM.

    Comment

    Working...
    X