-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Contact Information page to Form Upload flow (#33377)
- Loading branch information
1 parent
ffefcd5
commit 924f880
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/applications/simple-forms/form-upload/pages/phoneNumberAndEmail.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
emailSchema, | ||
emailToSendNotificationsUI, | ||
phoneSchema, | ||
phoneUI, | ||
titleUI, | ||
} from 'platform/forms-system/src/js/web-component-patterns'; | ||
|
||
/** @type {PageSchema} */ | ||
export const phoneNumberAndEmailPage = { | ||
uiSchema: { | ||
...titleUI('Phone and email address'), | ||
phoneNumber: phoneUI(), | ||
email: emailToSendNotificationsUI(), | ||
}, | ||
schema: { | ||
type: 'object', | ||
properties: { | ||
phoneNumber: phoneSchema, | ||
email: emailSchema, | ||
}, | ||
required: ['email'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,12 @@ | |
"state": "CA", | ||
"postalCode": "12345" | ||
}, | ||
"idNumber": { "ssn": "234232345", "vaFileNumber": "456454567" }, | ||
"phoneNumber": "1231231234", | ||
"email": "[email protected]", | ||
"idNumber": { | ||
"ssn": "234232345", | ||
"vaFileNumber": "456454567" | ||
}, | ||
"uploadedFile": { | ||
"confirmationCode": "03d52b41-bc92-4830-beda-dfc3c2669af4", | ||
"name": "Mock File", | ||
|
@@ -20,4 +25,4 @@ | |
"warnings": [] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters