varchar mask formats

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scott.moreland
    Junior Member
    • Dec 2016
    • 12

    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.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

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

    Comment

    • scott.moreland
      Junior Member
      • Dec 2016
      • 12

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

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #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

        • scott.moreland
          Junior Member
          • Dec 2016
          • 12

          #5
          Thanks Tanya, you're awesome!

          Comment

          Working...