Formula Proper for string?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CaspianAugust
    Junior Member
    • Feb 2021
    • 1

    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.
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #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.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    Working...