Principal Investigator 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": "pi@university.edu"}CommonGrants Data
What the data looks like translated to the CommonGrants data model using the mapping-to-cg.
{ "contacts": { "otherContacts": { "principalInvestigator": { "emails": { "primary": "pi@university.edu" } } } }}JSON Schema
Provides the structure and data validation for this question.
$id: QuestionPiEmail.yamltype: objectunevaluatedProperties: not: {}examples: - email: pi@university.edu - email: contact@example.comdescription: The email address of the principal investigatorx-ui-schema: type: VerticalLayout elements: - type: Control scope: '#/properties/email' label: PI Email Addressx-mapping-to-cg: contacts: otherContacts: principalInvestigator: emails: primary: field: emailx-mapping-from-cg: email: field: contacts.otherContacts.principalInvestigator.emails.primaryx-entity: - principalInvestigatorx-tags: - person - emailrequired: - 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": "PI Email Address" } ]}Mapping to CommonGrants
How to translate this question into the CommonGrants ProposalBase data model.
{ "contacts": { "otherContacts": { "principalInvestigator": { "emails": { "primary": { "field": "email" } } } } }}Mapping from CommonGrants
How to pre-fill this question with data from the ProposalBase data model.
{ "email": { "field": "contacts.otherContacts.principalInvestigator.emails.primary" }}