How to create field like "email" or "phone"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ruslan
    Senior Member
    • Aug 2014
    • 102

    How to create field like "email" or "phone"

    How to create field like "email" or "phone" i want to be able to create multi website field for account.
    because one customer can have more than one website.

    Thanks
  • yuri
    Member
    • Mar 2014
    • 8455

    #2
    It's not easy. Needs some development.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Ruslan
      Senior Member
      • Aug 2014
      • 102

      #3
      ok. i can try! just give me direction. thanks
      another thing about fields.
      i have change description field in new entity "projects" in entityDefs to this code: to show "Wysiwyg" field and not the regular text field. but this seems not working. i still see the the regular text field

      "description": {
      "type": "text",
      "view": "Fields.Wysiwyg"
      }

      Comment

      • yuri
        Member
        • Mar 2014
        • 8455

        #4
        1. Take a look to Espo\Core\ORM\Repositiries\RDB class. There are handleEmailAddressParams and handleEmailAddressSave. You need to create your own Repository for your entity (or extend in custom namespace if italready exists) and define methods handleWebAddressParams and handleWebAddressSave.

        2. Maybe there is dependency on 'isHtml' bool field. Not sure. Try add isHtml field that equals true. If yes, then I will fix in the next version.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • Ruslan
          Senior Member
          • Aug 2014
          • 102

          #5
          Hi,
          not working.

          "description":{
          "type": "text",
          "view": "Fields.Wysiwyg",
          "isHtml":true
          },

          Comment

          • yuri
            Member
            • Mar 2014
            • 8455

            #6
            isHtml is a field. Take a look to Email entityDefs
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • Ruslan
              Senior Member
              • Aug 2014
              • 102

              #7
              Great working!
              where i can set the default height of the editor?

              Comment

              • yuri
                Member
                • Mar 2014
                • 8455

                #8
                I don't know.
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                Working...