Announcement

Collapse
No announcement yet.

Formula and validation question

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

  • yberges
    replied
    yes genial ca marche !!!!!!!!! merci item (super cool de trouver des utilisateur FR)

    Leave a comment:


  • esforim
    commented on 's reply
    "number mask in input"

    Can't without code. It in feature request but no update yet. If you want it urgently there is a Paid Extension for it.

    Unfortunately there is also no guide on how to do it as well.

  • item
    replied
    Salut,
    Ton entity Profil est de type : Person ? ce qui semble etre le cas :
    "name" c'est une concatenation de "firstName" et "lastName". ce n'est pas comme les autre entityType où l'on a reellement un attribut "name"

    dans ton cas :

    firstName = string\upperCase(firstName);
    lastName = string\upperCase(lastName);

    Pour les mask Input, on a pas de solution et generalement ca pose probleme a l'usage (en tout cas, dans notre entreprise)

    Leave a comment:


  • yberges
    replied
    ahh maybe i don't undesratnd but
    1 i add formula
    2 i edit an value and save
    3 i see NAME LASTNAME in title of view
    Click image for larger version

Name:	2022-11-24_13h52_45.png
Views:	296
Size:	77.9 KB
ID:	85625
    4 i refresh all become without formula
    Click image for larger version

Name:	2022-11-24_13h52_59.png
Views:	332
Size:	76.4 KB
ID:	85624
    any idea ?

    other question how i can do a number mask in input ?
    regards

    Leave a comment:


  • esforim
    commented on 's reply
    Contribute to o-data/EspoCRM-Learning-and-Design development by creating an account on GitHub.


    I write somehere in here a newbie guide to using Formula, maybe it will help.

  • lazovic
    replied
    yberges,

    Go to Administration > Entity Manager > Profil (your entity) > Formula and insert this line:
    Code:
    name = string\upperCase(name);

    Leave a comment:


  • yberges
    replied
    yes i see this but i am not a dev ... i need to understand how i can add this in formula and apply to a specific field
    thanks

    Leave a comment:


  • lazovic
    replied
    Hi yberges,

    You can set Name field's value in uppercase after save using this formula: https://docs.espocrm.com/administrat...tringuppercase.

    Leave a comment:


  • yberges
    started a topic Formula and validation question

    Formula and validation question

    hello
    i need to understand 2 things with field and validation
    1 i create a profil and i want to set Name in uppercase after save
    how i can do this with formula ? i edite my profil identity, go to formula but i don't understand how i can set Name to uppercas

    2 in a phone field how i can do a mask for value ?
    thanks for your help
Working...
X