Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions src/config/projectQuestions/avd.v1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ const sections = [
description: 'Describe your objectives for creating this application',
type: 'textinput',
fieldName: 'name',
validationError: 'Screen name cannot be blank'
validationError: 'Screen name cannot be blank',
validations: 'isRequired'
},
{
icon: 'question',
Expand All @@ -148,7 +149,8 @@ const sections = [
description: 'What are the important features/capabilities that the screen provides to your end users?',
type: 'textbox',
fieldName: 'description',
validationError: 'Answer cannot be blank'
validationError: 'Answer cannot be blank',
validations: 'isRequired'
},
{
icon: 'question',
Expand Down
6 changes: 4 additions & 2 deletions src/config/projectQuestions/avd.v1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ const sections = [
description: 'Describe your objectives for creating this application',
type: 'textinput',
fieldName: 'name',
validationError: 'Screen name cannot be blank'
validationError: 'Screen name cannot be blank',
validations: 'isRequired'
},
{
icon: 'question',
Expand All @@ -146,7 +147,8 @@ const sections = [
description: 'What are the important features/capabilities that the screen provides to your end users?',
type: 'textbox',
fieldName: 'description',
validationError: 'Answer cannot be blank'
validationError: 'Answer cannot be blank',
validations: 'isRequired'
},
{
icon: 'question',
Expand Down
6 changes: 4 additions & 2 deletions src/config/projectQuestions/wireframes.v1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ const sections = [
description: 'Describe your objectives for creating this application',
type: 'textinput',
fieldName: 'name',
validationError: 'Screen name cannot be blank'
validationError: 'Screen name cannot be blank',
validations: 'isRequired'
},
{
icon: 'question',
Expand All @@ -145,7 +146,8 @@ const sections = [
description: 'What are the important features/capabilities that the screen provides to your end users?',
type: 'textbox',
fieldName: 'description',
validationError: 'Answer cannot be blank'
validationError: 'Answer cannot be blank',
validations: 'isRequired'
},
{
icon: 'question',
Expand Down
3 changes: 2 additions & 1 deletion src/projects/detail/components/SpecScreenQuestions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const SpecScreenQuestions = ({questions, screen}) => {
name: q.fieldName,
label: q.label,
value: _.get(screen, q.fieldName, undefined),
validationError: q.validationError
validationError: q.validationError,
validations: q.validations
}
let ChildElem = ''
switch (q.type) {
Expand Down