Drupal 8에서 웹 양식 만들기
composer require drupal/webform ; drush en webform_ui -y
모든 웹 양식의 목록 페이지로 이동합니다.
/admin/structure/webform
"웹 양식 추가"버튼을 클릭하고 웹 양식의 제목을 작성합니다.

웹 양식은 다음으로 구성됩니다.
텍스트 필드를 추가해 보겠습니다. 이렇게 하려면 웹 양식 설정에서 "항목 추가"버튼을 클릭하고 "텍스트 필드"를 선택합니다.

필드 이름을 작성하고 머신 이름을 변경합니다.

구하다. 마찬가지로 메일과 댓글을 추가하되 텍스트 필드 대신 이메일과 텍스트 상자를 각각 추가합니다.

이제 개인 데이터 처리에 동의하는 필드를 추가해 보겠습니다. 체크박스/체크박스가 필요합니다:

버튼을 구성하기만 하면 양식이 준비됩니다.

"확인"페이지로 이동합니다.
/admin/structure/webform/manage/machine_name_webform/settings/confirmation
양식을 작성한 후 사용자에게 표시되는 내용은 무엇입니까?
가장 쉬운 방법은 모달 창입니다!

이제 "테스트"버튼을 클릭하여 테스트할 수 있습니다.

모든 항목은 결과 페이지에서 볼 수 있습니다.
/admin/structure/webform/manage/machine_name_webform/results/submissions

웹 양식에서 이메일로 메시지를 받으려면 "이메일/처리기"페이지로 이동하십시오.
/admin/structure/webform/manage/feedback/handlers
"이메일 추가"버튼을 누르세요. 다음 설정을 작성해야 합니다.

여기에서 웹 양식을 테스트할 수 있도록 메일 보내기를 설정했습니다.

웹 양식의 이메일은 누구에게 전달됩니까? CC 이메일과 BCC 이메일은 두 번째와 세 번째 수신자입니다. 그러나 나는 그 필드를 사용하지 않습니다.

메일은 누구에게서 올까요? 보낸 사람의 메일이 없어도 됩니다. 가장 중요한 것은 보낸 사람의 도메인이 사이트의 도메인과 일치한다는 것입니다.

메시지의 제목과 내용입니다. Twig에 대한 특별한 관심 - 편지의 형태를 어느 정도 허용합니다.
양식 테스트를 마친 후 "고급"탭에서 전송을 비활성화할 수 있습니다.

사이트에서 양식을 보내지 않으면 SMTP를 구성해야 합니다.
이메일이 작성되지 않은 경우 - Mime Mail을 구성해야 합니다.
Reference
이 문제에 관하여(Drupal 8에서 웹 양식 만들기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/vadimfilimonov/creating-a-web-form-in-drupal-8-2l0a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)