# Toggle field based on gform\_field\_validation

**URL:** <https://community.gravityforms.com/t/toggle-field-based-on-gform-field-validation/10726>\
**Category:** Get Help\
**Tags:** custom, gform\_field\_validation\
**Created:** [September 10, 2021, 12:44pm UTC](https://community.gravityforms.com/t/toggle-field-based-on-gform-field-validation/10726 "2021-09-10T12:44:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danieljj](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/danieljj/32/2812_2.png) [@danieljj](https://community.gravityforms.com/u/danieljj)\
**Post date:** [September 10, 2021, 12:44pm UTC](https://community.gravityforms.com/t/toggle-field-based-on-gform-field-validation/10726/1 "2021-09-10T12:44:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [October 10, 2021, 12:44pm UTC](https://community.gravityforms.com/t/toggle-field-based-on-gform-field-validation/10726/2 "2021-10-10T12:44:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
