Skip to content

Commit 6ce3b8d

Browse files
authored
feature-8784:Add type year drop down custom from field (#8894)
* feature-8784:Add type year drop down custom from field * feature-8784:Add type year drop down custom from field
1 parent 9c90276 commit 6ce3b8d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/api/helpers/custom_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_schema(form_fields):
1515
attrs = {}
1616

1717
for field in form_fields:
18-
if field.type in ['text', 'checkbox', 'select', 'paragraph']:
18+
if field.type in ['text', 'checkbox', 'select', 'paragraph', 'year']:
1919
field_type = marshmallow.fields.Str
2020
elif field.type == 'email':
2121
field_type = TrimmedEmail

app/api/schema/custom_forms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Meta:
4040
"email",
4141
"number",
4242
"paragraph",
43+
"year",
4344
]
4445
),
4546
)

0 commit comments

Comments
 (0)