0

I am a new to Drupal 8

I am trying to make select options with webform submission.

What module do I need? and How can I make this select options with that module?

Thank you very much!

impenter image description herelement

closed as off-topic by Clive Mar 9 at 9:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking to recommend or find a book, tool, module, theme, distribution, tutorial, or other off-site resource are off-topic for Drupal Answers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Clive
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I am guessing you are looking for hierarchical selection. If I am right, please check out the Webform Simple Hierarchical Select module. drupal.org/project/webform_shs – jrockowitz Mar 9 at 14:33
1

I believe what used to be webform_views_select module is part of Webform core for Drupal 8.

You can search for entity and choose any of the following elements

enter image description here

configure an entity reference view to be use as options

enter image description here

NOTE1: Due to perhaps this issue entity reference is not recognized by webform the way outlined above, but it should work if core patch in #7 is applied (as confirmed by reports in this issue)

NOTE2: Perhaps a work around would be to use content or taxonomy term instead of a view (since view reference is not working) if you don't have great need for views filtering capabilities.

  • Thank you very much for your answer, I think I kind of getting idea of how but I am not pretty sure how to do views filter by an entity reference view. Whenever I tried to do this way, it throws me an error saying 'No eligible views were found. Create a view with an Entity Reference display, or add such a display to an existing view.' – SeJong Jang Mar 13 at 8:33
  • Could you please tell me how to connect reference with View? – SeJong Jang Mar 13 at 8:34
  • Currently you can not (NOTE1), look at NOTE2 for workaround – GiorgosK Mar 13 at 8:35
  • Thank you so much GiogosK! – SeJong Jang Mar 13 at 16:55
  • I am not sure, is it possible to make taxonomy list with webform submissions? – SeJong Jang Mar 13 at 17:00
0

The Webform module will do this out of the box.

  1. Install webform module the usual way.
  2. Install the webform_ui module too. It helps a lot in creating new forms.
  3. Build your new form.
  4. Add Element "select" (to find in the list at "options elements").
  5. Add Options you want.

As an alternative you can write your webform-definition in yaml-format.

This looks like:

class:
  '#type': select
  '#title': Class
  '#options':
    Geometry: Geometry
    Algebra: Algebra
    English: English

Webform module is complex, but can fullfill many needs. There are some helpful videos using webform module.

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