Output of each iterator through enum multi is repeated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    Output of each iterator through enum multi is repeated

    Hello, I need help again. I have a multi enum field, which I would like to output as a list in PDF. It works, although the values of the field are output two times.

    My code:

    {{#each artCollectionWorkssNames}}
    {{./this}}{{/each}}

    You see in the screenshot from the PDF, after four titles (that are in the list so far), the same four titles are repeated.
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    I just tested on the demo and working fine for me.

    Create 4 test multi-enum too. Here my code in Codeview <>

    Code:
    {{#each artCollectionWorkssNames}}<br>{{./this}}
    <br>{{/each}}
    Perhaps try creating a new blank "test" template, see if duplicate there.

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1602

      #3
      Hello,
      still does not work. Could it be because I am populating this multi enum from another entity?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        Use IDs field to loop through. Then get a name from a name map.
        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

        • esforim
          Active Community Member
          • Jan 2020
          • 2204

          #5
          Originally posted by shalmaxb
          Hello,
          still does not work. Could it be because I am populating this multi enum from another entity?
          As in it a Foreign Field?

          Comment

          • shalmaxb
            Senior Member
            • Mar 2015
            • 1602

            #6
            yuri is there any example whre you could direct me?

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7
              https://docs.espocrm.com/user-guide/...elated-records The 2nd example.
              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


              • shalmaxb
                shalmaxb commented
                Editing a comment
                Thank you ery much! Worked!
            Working...