Hide form if status is not "pending"?

Hi. I’m using Gravity Forms + Gravity Flow (workflow). I’m using form submission to have one form for entering details and second form for payments. I want to make it so whenever payment is made, user couldn’t pay with the same form again.

I got the code how to recognize if the payment is made, however I can’t seem to figure out how to hide the form with php code, best I found is:

add_filter( 'gform_submit_button_2', '__return_false' )

but this only hides the “Submit” button. Is there a way to hide whole form with PHP code upon loading. Thanks.

Hi Rytis, you can use this filter: https://docs.gravityforms.com/gform_get_form_filter/

1 Like

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

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