Move Print to PDF button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codyfsm
    Junior Member
    • Aug 2020
    • 3

    Move Print to PDF button

    I have read over the developer docs related to creating custom buttons but I cannot figure out how to do this...

    I want the end result to look something like this:

    How can I accomplish this? Or, if you are a developer and willing to help me out, I have a few dollars to spare!
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    Hello. I can help you here by describing process step by step or you can contact me at contact@devcrm.it and we'll do it for you
    It's pretty simple

    Comment

    • codyfsm
      Junior Member
      • Aug 2020
      • 3

      #3
      Originally posted by emillod
      Hello. I can help you here by describing process step by step or you can contact me at contact@devcrm.it and we'll do it for you
      It's pretty simple
      Please do share any advice you'd be willing to. If I'm unable to figure it out, I'll contact you to do it for me

      Comment

      • esforim
        Active Community Member
        • Jan 2020
        • 2204

        #4
        Hi codyfsm,

        I have tried to create button before, unfortunately no luck creating a custom one.

        However, as Print to PDF is a standard button that already exist in the system (hopefully) it just a matter of Copy and Pasting the code from the "..." location to the Right Hand Side button.

        Please have a look at the documentation here



        And some thread relating to Buttons (Ctrl+F), please use Find "button" for related thread.
        In the future this thread will be use for discussion; the Wiki hosted on Github will be used instead to post update; please see: https://github.com/o-data/EspoCRM-Learning-and-Design/wiki Part 2 of this post can be found here: https://forum.espocrm.com/forum/gene...5114#post55114 (https://forum.espocrm.com/forum/general/54706

        Comment

        • emillod
          Active Community Member
          • Apr 2017
          • 1405

          #5
          codyfsm contacted me through chat on devcrm.it and i gave him a tip that whole print to pdf button was placed in source file:
          client/src/views/record/detail.js in line 267

          I also told him that he can check in /client/modules/crm/src/views/task/detail.js to find out how he can create button in the top-right corner based on close task button which is already created in task entity.

          And last hint was that he should create whole button in custom client directory which he can create based on Custom views tutorial which is available in official documentation, here: https://docs.espocrm.com/development/custom-views/


          // maybe someone else use this

          Comment


          • esforim
            esforim commented
            Editing a comment
            Awesome. I might just give it a try one day.
        Working...