diff --git a/.stackbit/models/ContactSection.ts b/.stackbit/models/ContactSection.ts index d8e4e32..1fe8fb9 100644 --- a/.stackbit/models/ContactSection.ts +++ b/.stackbit/models/ContactSection.ts @@ -39,8 +39,6 @@ export const ContactSectionModel: Model = { default: { type: 'FormBlock', elementId: 'contact-form', - action: '/.netlify/functions/submission_created', - destination: '', fields: [ { type: 'TextFormControl', diff --git a/.stackbit/models/FormBlock.ts b/.stackbit/models/FormBlock.ts index 7202b8b..d468231 100644 --- a/.stackbit/models/FormBlock.ts +++ b/.stackbit/models/FormBlock.ts @@ -76,20 +76,6 @@ export const FormBlockModel: Model = { default: 'contact-form', required: true }, - { - type: 'string', - name: 'action', - group: 'settings', - label: 'Action (form submission URL)', - default: '/.netlify/functions/submission_created' - }, - { - type: 'string', - name: 'destination', - label: 'Destination (email to redirect responses)', - default: '', - group: 'settings' - }, { type: 'style', name: 'styles', diff --git a/.stackbit/presets/contact-section.json b/.stackbit/presets/contact-section.json index 5e738bb..a1a1a6e 100644 --- a/.stackbit/presets/contact-section.json +++ b/.stackbit/presets/contact-section.json @@ -11,8 +11,6 @@ "form": { "type": "FormBlock", "elementId": "contact-form", - "action": "/.netlify/functions/submission_created", - "destination": "", "fields": [ { "type": "TextFormControl", @@ -78,8 +76,6 @@ "form": { "type": "FormBlock", "elementId": "contact-form", - "action": "/.netlify/functions/submission_created", - "destination": "", "fields": [ { "type": "TextFormControl", @@ -147,8 +143,6 @@ "form": { "type": "FormBlock", "elementId": "contact-form", - "action": "/.netlify/functions/submission_created", - "destination": "", "fields": [ { "type": "EmailFormControl", diff --git a/.stackbit/presets/page-layout.json b/.stackbit/presets/page-layout.json index 24f3cee..0c23623 100644 --- a/.stackbit/presets/page-layout.json +++ b/.stackbit/presets/page-layout.json @@ -176,8 +176,6 @@ "form": { "type": "FormBlock", "elementId": "sign-up-form", - "action": "/.netlify/functions/submission_created", - "destination": "", "fields": [ { "type": "TextFormControl", @@ -573,8 +571,6 @@ "form": { "type": "FormBlock", "elementId": "sign-up-form", - "action": "/.netlify/functions/submission_created", - "destination": "", "fields": [ { "type": "TextFormControl", diff --git a/content/pages/blog/post-five.md b/content/pages/blog/post-five.md index 1256a43..8c0021f 100644 --- a/content/pages/blog/post-five.md +++ b/content/pages/blog/post-five.md @@ -50,8 +50,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/blog/post-four.md b/content/pages/blog/post-four.md index a9461db..e3fb8d3 100644 --- a/content/pages/blog/post-four.md +++ b/content/pages/blog/post-four.md @@ -50,8 +50,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/blog/post-one.md b/content/pages/blog/post-one.md index 99ba15a..56ec4ca 100644 --- a/content/pages/blog/post-one.md +++ b/content/pages/blog/post-one.md @@ -56,8 +56,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/blog/post-seven.md b/content/pages/blog/post-seven.md index 45ddbbf..0ded5ef 100644 --- a/content/pages/blog/post-seven.md +++ b/content/pages/blog/post-seven.md @@ -57,8 +57,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/blog/post-six.md b/content/pages/blog/post-six.md index 64f8c5c..580590e 100644 --- a/content/pages/blog/post-six.md +++ b/content/pages/blog/post-six.md @@ -50,8 +50,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/blog/post-three.md b/content/pages/blog/post-three.md index 537218d..d086dcc 100644 --- a/content/pages/blog/post-three.md +++ b/content/pages/blog/post-three.md @@ -57,8 +57,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/blog/post-two.md b/content/pages/blog/post-two.md index 88e1db7..894c9fb 100644 --- a/content/pages/blog/post-two.md +++ b/content/pages/blog/post-two.md @@ -63,8 +63,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/index.md b/content/pages/index.md index 6021430..d36b7b6 100644 --- a/content/pages/index.md +++ b/content/pages/index.md @@ -134,8 +134,6 @@ sections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/info.md b/content/pages/info.md index c6533d8..6e233da 100644 --- a/content/pages/info.md +++ b/content/pages/info.md @@ -352,8 +352,6 @@ sections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/content/pages/projects/index.md b/content/pages/projects/index.md index fc85b30..b095a91 100644 --- a/content/pages/projects/index.md +++ b/content/pages/projects/index.md @@ -36,8 +36,6 @@ bottomSections: form: type: FormBlock elementId: sign-up-form - destination: '' - action: /.netlify/functions/submission_created fields: - name: firstName label: First Name diff --git a/src/components/molecules/FormBlock/index.tsx b/src/components/molecules/FormBlock/index.tsx index cec8e1b..1d42479 100644 --- a/src/components/molecules/FormBlock/index.tsx +++ b/src/components/molecules/FormBlock/index.tsx @@ -6,7 +6,7 @@ import { mapStylesToClassNames as mapStyles } from '../../../utils/map-styles-to export default function FormBlock(props) { const formRef = React.createRef(); - const { elementId, className, action, destination, fields = [], submitLabel, styles = {} } = props; + const { elementId, className, fields = [], submitLabel, styles = {} } = props; if (fields.length === 0) { return null; diff --git a/src/types/generated.ts b/src/types/generated.ts index 15faef7..820fa7a 100644 --- a/src/types/generated.ts +++ b/src/types/generated.ts @@ -305,8 +305,6 @@ export type FormBlock = BaseContentObject & { fields?: (TextFormControl | EmailFormControl | TextareaFormControl | CheckboxFormControl | SelectFormControl)[]; submitLabel?: string; elementId: string; - action?: string; - destination?: string; styles?: any; };