Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for field in submission.fieldMetadata %}
- {% if field.type == "file" %}
- {% set assetId = attribute(submission, field.handle) %}
- {% set assets = craft.assets.id(assetId).all() %}
- {% for asset in assets %}
- {% if asset %}
- {% if asset.kind == "image" %}
- <img src='{{ asset.url }}'>
- {% endif %}
- {% endif %}
- {% endfor %}
- {% endif %}
- {% endfor %}
Add Comment
Please, Sign In to add comment