Skip to content

Commit

Permalink
add new field
Browse files Browse the repository at this point in the history
  • Loading branch information
corwintines committed Jan 20, 2025
1 parent 4d575b8 commit 57a5f7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/forms/AcademicGrantsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,12 @@ export const AcademicGrantsForm: FC = () => {
relevant links here"
/>

<TextAreaField
id="addtionalSupport"
label="Apart from financial support, what else do you need from the EF?"
helpText="Beyond financial support, what support would you need from the Ethereum Foundation to execute on this project?"
/>

<Center mb={12}>
<Captcha />
</Center>
Expand Down
3 changes: 3 additions & 0 deletions src/components/forms/schemas/AcademicGrants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export const AcademicGrantsSchema = z
repeatApplicant: z.boolean(),
canTheEFReachOut: z.boolean().optional(),
additionalInfo: stringFieldSchema('Additional info', { max: MAX_TEXT_AREA_LENGTH }).optional(),
additionalSupport: stringFieldSchema('Additional support', {
max: MAX_TEXT_AREA_LENGTH
}).optional(),
captchaToken: stringFieldSchema('Captcha', { min: 1 })
})
.refine(
Expand Down
1 change: 1 addition & 0 deletions src/pages/api/academic-grants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse): Promise<void>
Repeat_Applicant__c: result.data.repeatApplicant,
Can_the_EF_reach_out__c: result.data.canTheEFReachOut,
Additional_Information__c: result.data.additionalInfo,
Additional_support_requests__c: result.data.additionalSupport,
Proactive_Community_Grants_Round__c: 'Academic Grants Round 2025', // this value is hardwired, depending on the type of grant round
LeadSource: 'Webform',
RecordTypeId: process.env.SF_RECORD_TYPE_GRANTS_ROUND!
Expand Down

0 comments on commit 57a5f7d

Please sign in to comment.