Multi-Enum Display on Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JoeRoot
    Junior Member
    • Jan 2019
    • 12

    Multi-Enum Display on Template

    Hello,

    Is there any way of displaying multi-enums in a different way? For instance, rather than having:
    Option1,Option2,Option3,Option4

    I would like to do something like:
    {{#each enumOptions}}
    <td>Option</td>
    {{/each}}
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi Joe,

    Code:
    <table>
    <tr>
    <!-- {{#each fieldName}} -->
       <td>{{./this}}</td>
    <!-- {{/each}} -->
    </tr>
    </table>
    <!-- --> is used to prevent layout braking by wysiwyg editor.
    Last edited by yuri; 03-11-2019, 02:25 PM.
    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

    • JoeRoot
      Junior Member
      • Jan 2019
      • 12

      #3
      Thank you, yuri!

      Comment

      Working...