Announcement

Collapse
No announcement yet.

Create new document in Contacts (detail) multi attachment field

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

  • Create new document in Contacts (detail) multi attachment field

    Hey everyone,

    I'm working on a custom field in EspoCRM for attaching multiple files, but I need to add an option to create a new document directly in the attachment field (instead of just selecting from the existing documents in the entity). Specifically, it's for my Faktury (Invoice) field, where I'd like to give users the ability to either upload a file or create a new document on the spot.

    Does anyone know how to modify the multiple attachment field to include an option for creating a new document? Ideally, I'd want this to be done via a button or link that opens a document creation form, and once the document is created, it would automatically attach to the contact.

    I'm looking to easiest implementation, so any guidance on how to structure this would be much appreciated!

    Thanks in advance!

    Click image for larger version

Name:	Snímek obrazovky 2024-10-24 231053.png
Views:	84
Size:	89.9 KB
ID:	111724

  • #2
    Hi dolezalll,

    If you have Advanced Pack extension installed in your EspoCRM instance, you can try using workflow to automatically create a document after it is loaded into a certain field.

    If you are interested in such an implementation option, I can describe it in more detail for you.

    Comment


    • #3
      Originally posted by lazovic View Post
      Hi dolezalll,

      If you have Advanced Pack extension installed in your EspoCRM instance, you can try using workflow to automatically create a document after it is loaded into a certain field.

      If you are interested in such an implementation option, I can describe it in more detail for you.

      Yeah, thak you for your tips, but for me i need only renaming the uploaded files. (before upload or after upload) in this field of attachmens.

      Comment


      • lazovic
        lazovic commented
        Editing a comment
        In this case, you will have to work with the EspoCRM code so that when you upload files, a window for creating or editing a document or file opens.

    • #4
      Originally posted by dolezalll View Post


      Yeah, thak you for your tips, but for me i need only renaming the uploaded files. (before upload or after upload) in this field of attachmens.
      You mean using formula or editing the whole codebase? Thank you

      Comment


      • #5
        dolezalll,

        A regular formula script won't help in this case. You need to at least add files on the frontend side to open the window: https://docs.espocrm.com/development/#frontend.

        Comment

        Working...
        X