Announcement

Collapse
No announcement yet.

{{contact.accountRole}} not pulling contact title

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

  • {{contact.accountRole}} not pulling contact title

    Hi guys,

    I have setup a simple contracts entity and a PDF template to go with it that generates a contract for the customer. The accounts and contacts entities are both linked by many-to-one links but when I try to use the {{contact.accountRole}} field it's just blank when the PDF is generated even though the linked contact does have a job title.

    Any ideas would be appreciated.

    Many thanks.

  • #2
    Need help with this also. I thought it be straight forward and it will work but it not working at all with various method I try. Anyone know if it possible or I'm using wrong code?

    Here is my code I have tried. Pretty none of it work. Only one that does work which is {{title}}, however this Title is the primary Title and not the current Account Title/Role.

    Basically I want to get the Title/Role of the Contact for this account that I'm using Print2PDF.

    Code:
    {{#each contacts}}
    Name: {{name}},
    1: {{accountRole}},
    2: {{accountrole}}
    {{/each}}
    
    {{#each contacts}}
    Name: {{name}},
    1: {{accounttitle}},
    2: {{accountTitle}}
    {{/each}}
    
    {{#each contacts}}
    Name: {{name}},
    1: {{contactRole}},
    2: {{contactrole}}
    {{/each}}
    
    {{#each contacts}}
    Name: {{name}},
    1: {{title}},
    2: {{contact.accountRole}}
    {{/each}}
    
    {{#each contacts}}
    Name: {{name}},
    1: {{contacts.Title}},
    2: {{contacts.accountTitle}}
    {{/each}}
    Last edited by espcrm; 06-02-2020, 07:30 AM.

    Comment

    Working...
    X