Gravity Forms doesn’t have a built-in [conditional] shortcode by default, but you can achieve conditional display using:
: Decide on the condition you want to apply. For example, you might want to show a specific field only if another field has a certain value. gravity forms conditional shortcode
You can combine merge tags with conditional logic: gravity forms conditional shortcode