Reference ID Not Showing in PDF Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aswathi
    Junior Member
    • Nov 2024
    • 26

    #1

    Reference ID Not Showing in PDF Template

    I’ve added a custom auto-increment field cReferenceId in the Quote entity. It shows correctly in the Entity Manager and is available as a placeholder {{cReferenceId}} in the PDF template.

    However, when I generate the Quote PDF, the Reference ID field doesn’t appear or is blank.

    ✅ I’ve already tried:
    • Adding the placeholder {{cReferenceId}} in the template
    • Confirmed the field exists and is selected
    • Cleared cache and rebuilt the system
    Attached Files
  • yuri
    Member
    • Mar 2014
    • 9055

    #2
    It worked for me.

    I recommend checking how the placeholder looks in the code view of the template (the Code View button is on the right).

    Click image for larger version

Name:	image.png
Views:	38
Size:	10.9 KB
ID:	118507
    Click image for larger version

Name:	image.png
Views:	32
Size:	19.6 KB
ID:	118508

    Click image for larger version

Name:	image.png
Views:	34
Size:	21.8 KB
ID:	118509​​
    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

    • Aswathi
      Junior Member
      • Nov 2024
      • 26

      #3
      <p></p><p></p><p style="-webkit-user-drag: none; -webkit-tap-highlight-color: transparent; margin: 0px 0px 0px 25px; padding: 0px; user-select: text; clear: both; cursor: text; overflow: visible; position: relative; direction: ltr; background-color: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp;</p><table style="text-align: justify; line-height: 1.36; width: 682.297px;"><tbody><tr><td style="width: 341.141px; vertical-align: top;"><br></td><td style="width: 341.156px; vertical-align: top; text-align: right;"></td></tr></tbody></table><span style="text-align: justify; background-color: rgb(254, 254, 254);"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</b></span><span style="text-align: justify;"><b>Ref:-{{cReferenceId}}/2025-26</b></span><span style="text-align: justify; background-color: rgb(254, 254, 254);"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</b></span><span style="font-weight: 600; text-align: justify; background-color: rgb(254, 254, 254);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {{today}}</span>




      code view of referenceid

      Comment

      • victor
        Active Community Member
        • Aug 2022
        • 923

        #4
        - I created a field like yours.
        - I copied the code and pasted it into the template.
        - I print to PDF from any Quote - no problems with Placeholder.

        Click image for larger version  Name:	image.png Views:	0 Size:	54.3 KB ID:	118555
        Click image for larger version

Name:	image.png
Views:	11
Size:	120.9 KB
ID:	118556

        Comment

        • Aswathi
          Junior Member
          • Nov 2024
          • 26

          #5
          The issue has been resolved. I had missed adding the field to the layout, but it's fixed now. thank you for the support guys

          Comment

          Working...