Skip to content

Commit 7e15728

Browse files
khangoncweitat
andauthored
feature-8783:Add type rich text links custom from field (#8892)
* feature-8783:Add type rich text links custom from field * Update custom_forms.py --------- Co-authored-by: cweitat <[email protected]>
1 parent 5e52f76 commit 7e15728

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', 'year']:
18+
if field.type in ['text', 'checkbox', 'select', 'paragraph', 'year', 'richtextlink']:
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+
"richtextlink",
4344
"boolean",
4445
"year",
4546
]

0 commit comments

Comments
 (0)