Skip to content

Commit f5e65ed

Browse files
author
vikasrohit
authored
Merge pull request #1142 from appirio-tech/feature/misc-changes
Github issue#1133, Chatbot: "Save changes" button is enabled, but not working when validation is triggered
2 parents 7c33b13 + 5e1c15a commit f5e65ed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/config/projectQuestions/ibm_chatbot.v1.0.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const sections = [
4646
questions: [
4747
{
4848
id: 'projectInfo',
49-
required: true,
5049
fieldName: 'description',
5150
description: 'Brief Description',
5251
title: 'Description',
@@ -173,6 +172,7 @@ export const basicSections = [
173172
{
174173
icon: 'question',
175174
required: true,
175+
validationError: 'Please complete this section',
176176
title: 'Are you an existing Watson Virtual Assistant customer?',
177177
description: '',
178178
fieldName: 'details.appDefinition.existingWatsonCustomer',
@@ -185,6 +185,7 @@ export const basicSections = [
185185
{
186186
icon: 'question',
187187
required: true,
188+
validationError: 'Please complete this section',
188189
title: 'Do you have an existing IBM Bluemix account?',
189190
description: '',
190191
type: 'radio-group',
@@ -196,7 +197,8 @@ export const basicSections = [
196197
},
197198
{
198199
icon: 'question',
199-
// required: true,
200+
required: true,
201+
validationError: 'Please complete this section',
200202
title: 'What capabilities does the chatbot need to support?',
201203
description: '',
202204
type: 'checkbox-group',
@@ -214,6 +216,7 @@ export const basicSections = [
214216
{
215217
icon: 'question',
216218
required: true,
219+
validationError: 'Please complete this section',
217220
title: 'Will the chatbot need to access data from any systems to support the capabilities you listed above? If so, please list the systems below.',
218221
description: '',
219222
type: 'textbox',
@@ -222,6 +225,7 @@ export const basicSections = [
222225
{
223226
icon: 'question',
224227
required: true,
228+
validationError: 'Please complete this section',
225229
title: 'Do you have any example agent conversations you can provide? If so, please paste them or any links to documents below (you’ll be able to upload documents later).',
226230
description: '',
227231
type: 'textbox',
@@ -230,6 +234,7 @@ export const basicSections = [
230234
{
231235
icon: 'question',
232236
required: true,
237+
validationError: 'Please complete this section',
233238
title: 'Are you planning to transfer conversations to human agents? If so, please list the agents’ communication tools (e.g., Slack, LiveAgent, Intercom, etc.).',
234239
description: '',
235240
type: 'textbox',

0 commit comments

Comments
 (0)