I tried today to submit a form with a number of hidden fields, but I found that there is no conditional logic (like for other form elements) to include or exclude them in the notification email or the data that is saved into the database. What am I missing?
The main purpose of conditional logic is to show/hide fields based on other fields values. Hidden fields are always hidden, so they’re not supported by conditional logic.
If you want to exclude all the Hidden fields in your form from the output of the {all_fields} merge tag in a notification, you can use the :nohidden modifier: https://docs.gravityforms.com/fields-merge-tag/#h-nohidden
If you want to exclude specific fields, the following free third-party add-on could help:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
Hey Dreamsmiths! Reviving this thread to add one more solution, in case it’s helpful to you or other users. We have a snippet that expands the :nohidden modifier to exclude any field hidden via the Visibility toggle or CSS.
This is more suited for those looking to have a faster solution since the All Fields Template takes a bit of setup.