Generic 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": "contact@example.com"}CommonGrants Data
What the data looks like translated to the CommonGrants data model using the mapping-to-cg.
{ "email": "contact@example.com"}JSON Schema
Provides the structure and data validation for this question.
$id: QuestionEmail.yamltype: objectrequired: - emailexamples: - email: contact@example.comdescription: A generic email address questionx-ui-schema: type: VerticalLayout elements: - type: Control scope: '#/properties/email' label: Email Addressx-mapping-to-cg: email: field: emailx-mapping-from-cg: email: field: emailx-tags: - generic - emailproperties: email: description: 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.
{ "email": { "field": "email" }}Mapping from CommonGrants
How to pre-fill this question with data from the ProposalBase data model.
{ "email": { "field": "email" }}