I am using Gravity Forms and the PayPal add-on for event registration. I would to be able to conditionally remove the form from the registration page and replace it with some text such "SOLD OUT".
I was thinking that I could use the gform_paypal_post_ipn hook to update a counter in the database that would keep track of PAID registrations. Then I would create a template for the registration page where via PHP I could load the Gravity Form OR the"SOLD OUT" text depending on the value of the counter. Will this work? Would I just load the form via a shortcode? Not sure how to proceed. Thx for any direction.