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

Slack Signup
Newsletter Optin
Help Desk

Hide form settings from specific user roles

Labels

This Discussion is public

Notifications

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.

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?

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.