I would like to create an accordion using the Drupal 9 webform. Any suggestions on how it should be done? Thanks enter image description here


When adding a webform component, look in the Containers section and add a "Details" container to your form. This should give you an accordion-like behavior using HTML5 details/summary elements.

Your Answer

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

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