Using Gravity Forms conditional logic you can show or hide fields based on values of previously filled fields, determine when to use a form confirmation or notification and also when a feed is fired or not (e.g. Stripe, PayPal, MailChimp, etc…).
In certain use cases what you really want to check is not a concrete value but if the field is just empty, no value entered, or the opposite, if it contains any value.
Doing this it’s very easy and I would say obvious. But despite this, it’s very common to see people wondering how to do this.
All you need to do is to use the is or is not operators and leave empty the input for the value in your condional logic rule! :)
It’s not clear yet? Please take a look to the following screenshot:
In the above screenshot, you can see a conditional logic rule to show a field in the form only if another field labeled as “Text Field” is not empty. As said above this same logic can be applied to notifications, confirmations or feeds. So you can, for example, show a specific confirmation or process a Mailchimp feed only if certain field in your form is not empty.
The above logic would apply to any field type where the user can type a value, like single line text, paragraph, email, etc…
For choices based fields (e.g. a drop down), you can’t use that. For these field types you would need to add an “is not” rule for each choice:
With the logic in the above screenshot, the field where we have configured it, will be shown only if the user didn’t selected any choice in the “Drop Down” field.