I want to require that someone is logged in for the form to be accepted. Is there a way to do that without making it a "private" page in wordpress?
I want to require that someone is logged in for the form to be accepted. Is there a way to do that without making it a "private" page in wordpress?
There are no user permissions functions built in to Gravity Forms. You would have to use something like the WordPress conditional tag "is_user_logged_in" in your page template and embed the form via the function call. Something like this..
<?php if ( is_user_logged_in() ) { ?>
<?php gravity_form(1, false, false, false, '', false); ?>
<?php } else { ?>
<h2>Sorry. You have to be logged in to complete this form</h2>
<?php };?>
more info:
http://codex.wordpress.org/Function_Reference/is_user_logged_in
http://forum.gravityhelp.com/topic/how-do-i-send-dynamic-values-with-the-gravity_form-function#post-10887
Or you might be able to use something like this.. it has the advantage of being applied easily anywhere
http://www.livexp.net/wordpress/using-wordpress-shortcodes-to-show-members-only-content.html
put the form in the member section and the alternate content in the visitor section.