0

How to transfer field_img_1 field_img_2 field values to the field_my_webform web form template (webform-submission-form--web-form-with-images-for-each-step.html.twig)

paragraph_web_form_with_images_for_each_step

field_img_1, field_img_2, field_my_webform

I need to do this in a web form template webform-submission-form--web-form-with-images-for-each-step.html.twig

...
{% if form.progress['#current_page'] == 'step_0' %}
    <div>{{ field_img_1 }}</div>
{% else form.progress['#current_page'] == 'step_1' %}
    <div>{{ field_img_2 }}</div>
...

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.