Form C - Community Grant
Summary
6 total questions | 100% mapped to the CommonGrants schema
Community grant application form
Details
Sample version of the rendered form.
What the form data looks like when it is submitted.
{ "projectTitle": "Project C", "contactFirstName": "Charlie", "contactLastName": "Chaplin", "fundingNeeded": 5000, "startPeriod": "2025-06-01"}
UI and JSON schemas used to render and validate the form.
JSON schema
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "projectTitle": { "type": "string", "title": "Project Title" }, "orgType": { "type": "string", "title": "Applicant Type", "enum": [ "Nonprofit", "Church", "Local Government", "Tribal Government", "Small Business", "Individual", "Not Listed" ] }, "contactFirstName": { "type": "string", "title": "Contact First Name" }, "contactLastName": { "type": "string", "title": "Contact Last Name" }, "fundingNeeded": { "type": "number", "title": "Funding Needed (USD)" }, "startPeriod": { "type": "string", "format": "date", "title": "Start Period" } }, "required": [ "projectTitle", "contactFirstName", "contactLastName" ]}
UI Schema
{ "type": "VerticalLayout", "elements": [ { "type": "Control", "scope": "#/properties/projectTitle" }, { "type": "Control", "scope": "#/properties/orgType" }, { "type": "Control", "scope": "#/properties/contactFirstName" }, { "type": "Control", "scope": "#/properties/contactLastName" }, { "type": "Control", "scope": "#/properties/fundingNeeded" }, { "type": "Control", "scope": "#/properties/startPeriod" } ]}
Mappings between the form and the CommonGrants schema.
Mapping to CommonGrants
{ "pointOfContact": { "firstName": { "field": "contactFirstName" }, "lastName": { "field": "contactLastName" } }, "project": { "title": { "field": "projectTitle" }, "applicantType": { "switch": { "field": "orgType", "case": { "Church": "nonprofit-religious", "Nonprofit": "nonprofit-general", "Small Business": "business-small", "Local Government": "government-local", "Tribal Government": "government-tribal", "Individual": "individual", "Not Listed": "custom" }, "default": "custom" } }, "amountRequested": { "field": "fundingNeeded" }, "startDate": { "field": "startPeriod" } }}
Mapping from CommonGrants
{ "projectTitle": { "field": "project.title" }, "orgType": { "switch": { "field": "project.applicantType", "case": { "nonprofit-general": "Nonprofit", "nonprofit-educational": "Church", "business-small": "Small Business", "business-general": "Not Listed", "government-tribal": "Tribal Government", "government-state": "Local Government", "government-local": "Local Government", "government-general": "Local Government", "individual": "Individual", "custom": "Not Listed" }, "default": "custom" } }, "contactFirstName": { "field": "pointOfContact.firstName" }, "contactLastName": { "field": "pointOfContact.lastName" }, "fundingNeeded": { "field": "project.amountRequested" }, "startPeriod": { "field": "project.startDate" }}