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.