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.

Fill out a form => make a menu entry visible

  1. contractors
    Member

    I have a menu item that is typically hidden (unauthorized) from users.

    I would like to create a GF form that would be filled out by registered users that - when filled out and submitted - would make that formerly hidden menu item visible/authorized to that user.

    Moreover, this change should be permanent for that user such that if days later that same user logs on to the website then that formerly hidden menu item would continue to be visible/accessible to them.

    Any suggestions?

    Posted 7 years ago on Thursday August 30, 2012 | Permalink
  2. David Peralty
    Administrator

    Can you tell me more about your set-up? What is currently hiding the menu item? Are you registering users with Gravity Forms?

    Posted 7 years ago on Thursday August 30, 2012 | Permalink
  3. contractors
    Member

    This is new functionality that is urgently needed BUT that also means I can be flexible.

    And yes, I plan on using GF and the Registration Add-On to self-register users (and sending a verification email as part of that process).

    As for the menu items that are to be dynamically authorized on an individual basis: those similarly do not exist yet so I can implement them in any manner that gets the job done.

    Here is expected flow. I expect there to be several menu items that are dynamically authorized by a single user, only not all at the same time:

    - On day one the WP website will contain several menu items that are hidden to unauthorized users
    - typically a user would self-register with GF and Registration Add-On;
    - user gets verification email with confirming link; once they confirm then Menu Item 100 is dynamically (and permanently) made accessible to them
    - as part of Menu Item 100 they next fill out another GF form, and when they click SUBMIT then that will dynamically (and permanently) make Menu Item 101 accessible to them
    - this process can continue for N number of successive forms

    Posted 7 years ago on Thursday August 30, 2012 | Permalink
  4. David Peralty
    Administrator

    So, from Gravity Forms' perspective, it can register users, but beyond that, none of this would be controlled or managed with Gravity Forms.

    You could add custom user meta information that Gravity Forms adds to a user profile that is called menuaccess and so when they submit, it adds a value to menuaccess so that anyone registering through your form gets menuaccess. You could even have the value be 100 and then however you decide to hide menus, you could test against the custom user meta, saying if menuaccess = 100, write menu...

    Posted 7 years ago on Thursday August 30, 2012 | Permalink
  5. I've used this plugin in the past to display a different menu to logged in users and visitors:
    http://wordpress.org/extend/plugins/wp-custom-menu-filter-plugin/

    Posted 7 years ago on Friday August 31, 2012 | Permalink