Skip to content

Commit 5e1c15a

Browse files
author
Vikas Agarwal
committed
Github issue#1133, Chatbot: "Save changes" button is enabled, but not working when validation is triggered
— Removed required validation for description field Github issue#1131, Chatbot: spec page not showing validation errors — Added generic validations
1 parent d2e3893 commit 5e1c15a

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',
@@ -172,6 +171,7 @@ export const basicSections = [
172171
{
173172
icon: 'question',
174173
required: true,
174+
validationError: 'Please complete this section',
175175
title: 'Are you an existing Watson Virtual Assistant customer?',
176176
description: '',
177177
fieldName: 'details.appDefinition.existingWatsonCustomer',
@@ -184,6 +184,7 @@ export const basicSections = [
184184
{
185185
icon: 'question',
186186
required: true,
187+
validationError: 'Please complete this section',
187188
title: 'Do you have an existing IBM Bluemix account?',
188189
description: '',
189190
type: 'radio-group',
@@ -195,7 +196,8 @@ export const basicSections = [
195196
},
196197
{
197198
icon: 'question',
198-
// required: true,
199+
required: true,
200+
validationError: 'Please complete this section',
199201
title: 'What capabilities does the chatbot need to support?',
200202
description: '',
201203
type: 'checkbox-group',
@@ -213,6 +215,7 @@ export const basicSections = [
213215
{
214216
icon: 'question',
215217
required: true,
218+
validationError: 'Please complete this section',
216219
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.',
217220
description: '',
218221
type: 'textbox',
@@ -221,6 +224,7 @@ export const basicSections = [
221224
{
222225
icon: 'question',
223226
required: true,
227+
validationError: 'Please complete this section',
224228
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).',
225229
description: '',
226230
type: 'textbox',
@@ -229,6 +233,7 @@ export const basicSections = [
229233
{
230234
icon: 'question',
231235
required: true,
236+
validationError: 'Please complete this section',
232237
title: 'Are you planning to transfer conversations to human agents? If so, please list the agents’ communication tools (e.g., Slack, LiveAgent, Intercom, etc.).',
233238
description: '',
234239
type: 'textbox',

0 commit comments

Comments
 (0)