From 1bf27de98e4ae98eca96c7441c4fd2312d2fd764 Mon Sep 17 00:00:00 2001 From: Jeremy McDermott Date: Wed, 11 Dec 2024 14:06:57 -0400 Subject: [PATCH] LIB-681 Add upload file field --- ...webform.webform.library_instruction_session.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configuration/webform.webform.library_instruction_session.yml b/configuration/webform.webform.library_instruction_session.yml index 49d2d749..c338edf6 100644 --- a/configuration/webform.webform.library_instruction_session.yml +++ b/configuration/webform.webform.library_instruction_session.yml @@ -160,6 +160,20 @@ elements: |- '#wrapper_attributes': class: - mb-4 + upload_doc: + '#type': webform_document_file + '#title': 'Upload your syllabus and/or assignment description' + '#wrapper_attributes': + class: + - mb-5 + '#file_extensions': 'pdf doc docx' + '#sanitize': true + '#button': true + '#button__title': 'Select file' + '#button__attributes': + class: + - btn + - btn-primary about_assignment: '#type': textarea '#title': 'Tell us about the assignment students will be working on'