Skip to content

Commit 49961fd

Browse files
committed
refactor(event-functions): improve form labels & rules"
see #250
1 parent 1d1f6d1 commit 49961fd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Events/EventFunctions/Form/index.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const EventFunctionForm = ({
137137
<Col span={11}>
138138
<Form.Item
139139
label="Code"
140-
title="Emergency function code e.g EF3"
140+
title="Emergency function code e.g ERF3"
141141
name={['strings', 'code']}
142142
rules={[
143143
{
@@ -155,9 +155,15 @@ const EventFunctionForm = ({
155155

156156
{/* start:groups */}
157157
<Form.Item
158-
label="Groups/Agencies"
159-
title="Lead and Supporting Groups/Agencies"
158+
label="Agencies"
159+
title="Lead and Supporting Agencies e.g Police Force"
160160
name={['relations', 'groups']}
161+
rules={[
162+
{
163+
required: true,
164+
message: 'Lead or Supporting Agencies are required',
165+
},
166+
]}
161167
>
162168
<SearchableSelectInput
163169
onSearch={getPartyGroups}

0 commit comments

Comments
 (0)