PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Auto-redirect if user has already accepted Terms of Use before.

  1. I'm wondering - is there any chance to apply the ability of auto-redirection from a form, if logged in user has already submitted it?

    What am I need:
    1) User logged in the first time
    2) User is redirected to the page of form with my Terms of Use
    3) If he accepts - we redirecting him to needed page (it's working fine)
    If he declines - we redirecting him to logout (I can do that if will aplly the link to logout instead of Decline button, I think...)
    1.2) User logged in not the first time and has already Accepted Terms of Use - how I can skip the page with form and auto-redirect him to needed page??

    I would be very grateful for your help.

    Posted 11 years ago on Monday November 12, 2012 | Permalink
  2. It seems like most of this functionality is dependent upon the user being logged in or not. If they're not logged in, make them log in first. If they are logged in, check to see if they have accepted your terms. If they have not, direct them to the form where they accept the terms.

    Since the acceptance of the terms is tied to a user, I think I would store a meta value in the user's profile, called it terms_accepted or something, then flag it 1 for accepted and 0 for not accepted. Then, read that meta value at the same time you determine if the user is logged in or not. If they have accepted, show them the form. If they have not accepted, show them the form to accept the terms.

    A lot of this functionality could be added to a page template, where you would check if the user is logged in or not, and if they have accepted the terms or not. Then, use the php function to embed a Gravity Form based on what you know about the visitor.

    It could all be done but will require you to get creative in your page template I think.

    Posted 11 years ago on Monday November 12, 2012 | Permalink
  3. Thx, I'll try to.

    Posted 11 years ago on Monday November 12, 2012 | Permalink