anonymous form submissions

fixes anonymous form submissions (fixes https://github.com/ohmyform/ohmyform/issues/108)
This commit is contained in:
Michael Schramm 2022-01-03 08:23:03 +01:00
parent 18693be229
commit ebc7d755b5
3 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -56,6 +56,14 @@ export const BaseDataTab: React.FC<TabPaneProps> = (props) => {
>
<Switch />
</Form.Item>
<Form.Item
label={t('form:baseData.anonymousSubmission')}
name={['form', 'anonymousSubmission']}
valuePropName={'checked'}
>
<Switch />
</Form.Item>
</Tabs.TabPane>
)
}

View File

@ -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 {