• Hi, I just installed your plugin and it looks very close to what I need, except for one thing: My requirement is to require a form to be completed to access content only for users who are not logged in. Registered users have already provided us with their contact details, so we want them to be able to access the content directly. Is there a way to do this with Before and After?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey @jackdewey!

    Thanks for asking!

    This is actually one of the top features on our roadmap, after finishing our native form builder. We agree this is an important feature and look forward to adding it to our feature set.

    Right now I think you could achieve this with some custom PHP that checks if a user is logged in and triggers a goal. It would be a bit hacky, but you could create your own shortcode that either calls our [complete_goal] shortcode when a user is logged in or the standard [goal] shortcode when a user is not logged in. For logged in users, this would trigger completion and move them on. For non logged in users, they would be shown the form.

    Let me know if that works!

    All the best,
    Richard

    Thread Starter Yannick Lefebvre

    (@jackdewey)

    I have already started working my way into the code. I develop plugins myself, so this is not a problem.

    I will just make my own branch for now and go back to main once this feature is in. Really, all you need is an option on the goal to say if it should be considered as matches for logged in users, and a few changes when you check if goal is reached to ass a check to is_user_logged_in().

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Consider goal met if user is logged in’ is closed to new replies.