How to access webform elements in webform.html.twig
I’m trying to figure out a way to access webform elements from webform.html.twig.
I need to style the form; wrapping some elements and adding bunch of styles all I have in the webform.html.twig is “children” variable which renders the whole form, whereas I need to access every element individually.
I found a link on the web for webform-form.html.twig which might do what I need, however I can’t find it in webform template folder
http://cgit.drupalcode.org/webform/tree/templates/webform-form.html.twig?id=1135b65031cd6cd195c2e638300e5ef945a6f652
Any help with this matter is much appreciated.
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.