Primary Contact Email
← Back to Question Bank
Details
Sample version of the rendered form.
Form Data
What the form data looks like when it is submitted.
{ "email": "jane.doe@example.com"}CommonGrants Data
What the data looks like translated to the CommonGrants data model using the mapping-to-cg.
{ "contacts": { "primary": { "emails": { "primary": "jane.doe@example.com" } } }}JSON Schema
Provides the structure and data validation for this question.
$id: QuestionPocEmail.yamltype: objectrequired: - emailunevaluatedProperties: not: {}examples: - email: jane.doe@example.comdescription: The email address of the primary point of contactx-ui-schema: type: VerticalLayout elements: - type: Control scope: '#/properties/email' label: Email Addressx-mapping-to-cg: contacts: primary: emails: primary: field: emailx-mapping-from-cg: email: field: contacts.primary.emails.primaryx-tags: - contact - emailproperties: email: description: The contact's primary email address $schema: https://json-schema.org/draft/2020-12/schema $id: email.yaml type: string examples: - test@example.com format: emailUI Schema
Describes how to present the question in the form UI.
{ "type": "VerticalLayout", "elements": [ { "type": "Control", "scope": "#/properties/email", "label": "Email Address" } ]}Mapping to CommonGrants
How to translate this question into the CommonGrants ProposalBase data model.
{ "contacts": { "primary": { "emails": { "primary": { "field": "email" } } } }}Mapping from CommonGrants
How to pre-fill this question with data from the ProposalBase data model.
{ "email": { "field": "contacts.primary.emails.primary" }}