Is there a way we can exclude certain webform field to be saved in Database. Don't want to exclude from email data.


This feature is currently not supported by the Webform module for Drupal 8. You would have to write custom code using hook_webform_submission_presave() to remove unwanted element data.

  • @jrcokowitz Is there any plan to introduce this feature in near future? Also, can you share a sample code to achieve this functionality using the hook you mentioned. Actually I am not a coder, I would highly appreciate your help :) – Fahad Ur Rehman Dec 10 '19 at 15:30
  • Please create a ticket in the webform issue queue and someone will most likely provide an example or help implement this feature. drupal.org/project/issues/webform – jrockowitz Dec 16 '19 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.