Is it possible to prevent the default data consent field from automatically being added to new forms?
Hi,
As the title describes, I would like to prevent this field from displaying when creating new forms as we collect our consent through other means and was hoping someones maybe done this before.
It's hard-wired to add the default consent form field to all new forms when they are created...
... there isn't a configuration option to turns this off.
But if you create a new form - and remove the consent field - you can 'copy' this new 'template' form to create new forms that won't contain the consent field.
As you can also customise the FormsTree menu items by listening for the MenuRendering event...
I'm wondering if you could 'remove' the existing default 'Create' option in this event, and replace it with a new create option, that calls the url which would create a 'copy' of your template form - so Editors when they choose the 'Create' option would get a new form without the consent default option appearing...
Is it possible to prevent the default data consent field from automatically being added to new forms?
Hi,
As the title describes, I would like to prevent this field from displaying when creating new forms as we collect our consent through other means and was hoping someones maybe done this before.
Thank you for your time,
Connor Forsyth
Hi Connor
It's hard-wired to add the default consent form field to all new forms when they are created...
... there isn't a configuration option to turns this off.
But if you create a new form - and remove the consent field - you can 'copy' this new 'template' form to create new forms that won't contain the consent field.
As you can also customise the FormsTree menu items by listening for the MenuRendering event...
https://our.umbraco.com/Documentation/Extending/Section-Trees/trees#menurendering
I'm wondering if you could 'remove' the existing default 'Create' option in this event, and replace it with a new create option, that calls the url which would create a 'copy' of your template form - so Editors when they choose the 'Create' option would get a new form without the consent default option appearing...
regards
Marc
Hi Mark,
Apologies for the slow reply,
Thank you for your help I'll give that a go.
Thank you for your time,
Connor Forsyth
Following up on an old thread, (as I'd searched for the same question - and, in case others find this in future).
As of Umbraco Forms v8.7.0, there is now an option to disable the automatic addition of the Data Consent field to new forms.
https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Configuration/#disableautomaticadditionofdataconsentfield
is working on a reply...