Skip to content

Liquid syntax not working as expected #307

@Patel-Abhi

Description

@Patel-Abhi

I have created a email notification template, where I need to support Tabular data from a dynamic data set. I am using liquid syntax which will be parsed and placeholders are being replaced at API side. Below is the example code attached. The problem is when I try to use a for loop syntax (from liquid), it moved the loop body outside of the table. Please suggest a way I can handle this problem.
Thanks in Advance...!!

This is how I want it to be

**{% for location in SamplingLocationDetails %}** **{% endfor %}**
  </tbody>
Sampling Location Sample Location Detail Sampling Date Sampling Time Seal Number
{{ location.Sampling_Location }} {{ location.Sample_Location_Detail }} {{ location.Sampling_Date }} {{ location.Sampling_Time }} {{ location.Seal_Number }}

This is how it becomes after change

{% for location in SamplingLocationDetails %}

{% endfor %}

  <table>
Sampling Location Sample Location Detail Sampling Date Sampling Time Seal Number {{ location.Sampling_Location }} {{ location.Sample_Location_Detail }} {{ location.Sampling_Date }} {{ location.Sampling_Time }} {{ location.Seal_Number }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions