title: Hide Gravity Forms Field only for users with a specific Memberpress Subscription
body: <p>We have a gravity form, and I'd like to be able to hide or show specific fields based on whether the user has a specific memberpress subscription. My overall approach was to use the HTML field to run a script to see if the user has a specific memberpress subscription and if so, populate a random field. I would then use that field for conditional logic on the fields I want to hide/show for users with the active memberpress subscription.</p>
  <p>Based on this post, I see that I can check if a user already has active memberpress: <a href="https://stackoverflow.com/questions/29744672/how-can-i-detect-if-user-has-subscribed-memberpress-product-already?newreg=8f6d9e4303fc480e9494bed68250d3d9">How can I detect if user has subscribed Memberpress product already</a></p>
  <p>But how can I then populate a value into a specific field of my form if the code returns true that user does have active memberpress subscription?</p>
  <pre><code>$mepr_user-&gt;is_active_on_membership( $membership_id ); // true or false
  </code></pre>