You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Outputting the field in twig breaks the Live Preview functionality and gives an error.
The problem is that the field needs to be json_encoded in the Live Preview.
To workaround this problem, this is a fix on the twig-side:
Outputting the field in twig breaks the Live Preview functionality and gives an error.
The problem is that the field needs to be json_encoded in the Live Preview.
To workaround this problem, this is a fix on the twig-side:
{% if craft.app.request.isLivePreview %} {{ myDynamicField|json_encode}} {% else %} {{ myDynamicField }} {% endif %}
The text was updated successfully, but these errors were encountered: