Toggle field based on gform_field_validation

I would like to conditionally display the Stripe field based on the outcome of a validation done in a previous numbers field. If the given value is valid, but fails the check, the Stripe form would ideally show within the same form. Is this at all possible to do?

I’m using a gform_field_validation filter to compare the given value with an api. With this filter as my starting point, will I be able to trigger field visability?

© 2008 - 2021. Gravity Forms is a project by Rocketgenius Inc.