The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Hide form settings from specific user roles
when creating a form, you get redirected to the form settings.
i work with form templates only. so there is no need to go into the form settings. simply create it, make changes to the fields and then submit the new form.
so as admin i want exclude subscriber role users from the form settings. is there any kind of a walkaround/hack/approach to achieve this?
i user the members plugin. there i see several frm rights. but nothing which matches with form settings.
August 27, 2014 at 8:20 am
hiding the settings link in frm nav is easy:
.frm_form_nav .first + li { display: none; }
but how to prevent the redirect after form creation?
August 27, 2014 at 8:26 am
YEA! Got it:
function disallowed_admin_pages(){
if ( current_user_can( 'editor' ) ) {
global $pagenow;
/* Check current admin page. */
if($pagenow == 'admin.php' && $_GET["frm_action"]=="settings"){
wp_redirect(admin_url('/admin.php?page=formidable', 'http'), 301);
exit;
}
}
}
add_action('admin_init', 'disallowed_admin_pages');
Discussion closed.