Conditional logic while dynamically populating with a hook

hi,
i’m dynamically populating a drop-down using the filter gform_pre_render_X. based on that selection i’d like to show a separate field below the drop down. for example: if the user selects dog from the drop-down, then show the single line text field below it. if the user selects cat, then do nothing.

can someone point me in the right direction? is there a filter to show/hide fields? if there’s a php solution that’s best as my javascript knowledge is bad.
thanks!

If you can’t configure the conditional logic rules on the field in the form editor the alternative is to configure them via the form object filters:

1 Like