Announcement

Collapse
No announcement yet.

Output of each iterator through enum multi is repeated

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

  • 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.

  • #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


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

      Comment


      • #4
        Use IDs field to loop through. Then get a name from a name map.

        Comment


        • #5
          Originally posted by shalmaxb View Post
          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


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

            Comment


            • #7
              https://docs.espocrm.com/user-guide/...elated-records The 2nd example.

              Comment


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