Announcement

Collapse
No announcement yet.

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

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

  • 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

  • #2
    It's not easy. Needs some development.

    Comment


    • #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


      • #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.

        Comment


        • #5
          Hi,
          not working.

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

          Comment


          • #6
            isHtml is a field. Take a look to Email entityDefs

            Comment


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

              Comment


              • #8
                I don't know.

                Comment

                Working...
                X