Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions clients/admin-ui/src/features/custom-fields/CustomFieldForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,16 @@ const CustomFieldForm = ({
<Input.TextArea rows={2} data-testid="input-description" />
</Form.Item>

<Form.Item label="Template" name="template">
<Form.Item
label="Template"
name="template"
rules={[
{
required: true,
message: "Select a template",
},
]}
>
<Select
options={[
{ label: "Custom", value: CUSTOM_TEMPLATE_VALUE },
Expand Down Expand Up @@ -269,7 +278,7 @@ const CustomFieldForm = ({
/>
</Form.Item>

{!!name && selectedTemplate === CUSTOM_TEMPLATE_VALUE && (
{selectedTemplate === CUSTOM_TEMPLATE_VALUE && (
<>
<Form.Item
label="Field type"
Expand Down
Loading