From ebc7d755b5e623dc26059046035a4515489fe3b7 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Mon, 3 Jan 2022 08:23:03 +0100 Subject: [PATCH] anonymous form submissions fixes anonymous form submissions (fixes https://github.com/ohmyform/ohmyform/issues/108) --- CHANGELOG.md | 1 + components/form/admin/base.data.tab.tsx | 8 ++++++++ graphql/fragment/form.fragment.ts | 2 ++ 3 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6d0887..8b952a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - new card layout for forms - field logic - add enviroment config +- anonymous form submissions (fixes https://github.com/ohmyform/ohmyform/issues/108) ### Changed diff --git a/components/form/admin/base.data.tab.tsx b/components/form/admin/base.data.tab.tsx index c40b153..67b609a 100644 --- a/components/form/admin/base.data.tab.tsx +++ b/components/form/admin/base.data.tab.tsx @@ -56,6 +56,14 @@ export const BaseDataTab: React.FC = (props) => { > + + + + ) } diff --git a/graphql/fragment/form.fragment.ts b/graphql/fragment/form.fragment.ts index c678943..21296a5 100644 --- a/graphql/fragment/form.fragment.ts +++ b/graphql/fragment/form.fragment.ts @@ -84,6 +84,7 @@ export interface FormFragment { lastModified?: string language: string showFooter: boolean + anonymousSubmission: boolean isLive: boolean fields: FormFieldFragment[] hooks: FormHookFragment[] @@ -116,6 +117,7 @@ export const FORM_FRAGMENT = gql` lastModified language showFooter + anonymousSubmission isLive hooks {