Announcement

Collapse
No announcement yet.

varchar mask formats

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

  • varchar mask formats

    Is there a way to set a default mask for a particular field? Example; I want to create a mask for a varchar field that will hold IP address information. So I would like to set a mask setting of something like ###.###.###.###. With the mask set, a user could input the IP address without inputting the periods in the address.

  • #2
    you can create own field type or (easier) create a view for this field and set it in entityDefs

    Comment


    • #3
      Since I'm rather new to Espo, Can you point me to the location the location where this is done?

      Comment


      • #4
        an example of custom view creation - https://github.com/espocrm/documenta...ustom-views.md

        as example you can get entity Account field shipping address (
        application/Espo/Modules/Crm/Resources/metadata/entityDefs/Account.json - fields - "shippingAddress"
        /client/modules/crm/src/views/account/fields/shipping-address.js
        )

        Comment


        • #5
          Thanks Tanya, you're awesome!

          Comment

          Working...
          X