Skip to content

Commit

Permalink
feature-8784:Add type year drop down custom from field (#8894)
Browse files Browse the repository at this point in the history
* feature-8784:Add type year drop down custom from field

* feature-8784:Add type year drop down custom from field
  • Loading branch information
khangon committed Jun 16, 2023
1 parent 9c90276 commit 6ce3b8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/helpers/custom_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_schema(form_fields):
attrs = {}

for field in form_fields:
if field.type in ['text', 'checkbox', 'select', 'paragraph']:
if field.type in ['text', 'checkbox', 'select', 'paragraph', 'year']:
field_type = marshmallow.fields.Str
elif field.type == 'email':
field_type = TrimmedEmail
Expand Down
1 change: 1 addition & 0 deletions app/api/schema/custom_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Meta:
"email",
"number",
"paragraph",
"year",
]
),
)
Expand Down

0 comments on commit 6ce3b8d

Please sign in to comment.