Reapply "Add postal code field to /fiscal-sponsorship/apply (#1185)"

This reverts commit 05ab34cbc0.
This commit is contained in:
Sam Poder 2024-05-02 09:07:46 -07:00
parent 05ab34cbc0
commit d893388137
3 changed files with 15 additions and 0 deletions

View file

@ -54,6 +54,18 @@ export default function OrganizationInfoForm({ requiredFields }) {
))}
</Select>
</Field>
<Field
name="eventPostalCode"
label={`ZIP code / postal code`}
description="If your organization runs online, please put your own postal code."
requiredFields={requiredFields}
>
<Input
name="eventPostalCode"
id="eventPostalCode"
placeholder="90069"
/>
</Field>
<Field
name="transparent"
label="Transparency mode"

View file

@ -16,6 +16,7 @@ export default async function handler(req, res) {
email: data.userEmail,
name: data.eventName,
country: getCode(data.eventLocation) || '',
postal_code: data.eventPostalCode || '',
transparent: data.transparent,
}),
method: 'POST',
@ -34,6 +35,7 @@ export default async function handler(req, res) {
'Date of Birth': data.userBirthday,
'Event Name': data.eventName,
'Event Website': data.eventWebsite,
'Event Postal Code': data.eventPostalCode,
'Tell us about your event': data.eventDescription,
'Mailing Address': data.userAddress,
'Address Line 1': data.addressLine1,

View file

@ -23,6 +23,7 @@ export default function Apply() {
const requiredFields = [
'eventName',
'eventLocation',
'eventPostalCode',
'eventDescription',
'firstName',
'lastName',