0

I have tried a lot to get form element in webform twig file. But variables are not coming.For example : when I'm using {{ element.elements.name }} in webform--contact-us.twig.html , nothing I'm getting. Only {{ children }} is giving me a whole form.

Any help will be appreciated.

1 Answer 1

0

Make sure that you are pointing on the right template and try this code :

{{ form.elements.YOUR_FIELD_NAME }} example : {{form.elements.full_name}

you can check this link : https://www.drupal.org/project/webform/issues/2865940

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.