Radio button not showing in the Post Form
Started by: ErinL1642
in: Toolset Professional Support
2
2
4 years, 7 months ago
Christian Cox
CRED: more than 10 matches to _wpcf_belongs_member_id field
Started by: webD-3
in: Toolset Professional Support
3
12
4 years, 7 months ago
Shane
reCAPTCHA v3
Started by: christopheV-2
in: Toolset Professional Support
2
2
4 years, 7 months ago
Christian Cox
Translate button text
Started by: kelvinL-2
in: Toolset Professional Support
2
2
4 years, 7 months ago
Christian Cox
Recaptcha is missing in Firefox browser
Started by: thomasD-2
in: Toolset Professional Support
2
3
4 years, 7 months ago
thomasD-2
I have an incompatibility between Toolset and Gravity FOrm 2.5V
Started by: DavidZ1525
in: Toolset Professional Support
Quick solution available
3
10
4 years, 7 months ago
Jamal
Split: converting markers from multiple maps into a single map
Started by: martinP-13
in: Toolset Professional Support
2
8
4 years, 7 months ago
martinP-13
post form , no image upload box showing on form
Started by: martinP-13
in: Toolset Professional Support
2
11
4 years, 7 months ago
martinP-13
Generic select field with "Get options from a shortcode" — disable options
Started by: Lara
in: Toolset Professional Support
2
5
4 years, 7 months ago
Lara
forms not updating custom posts
Started by: AndreG3332
in: Toolset Professional Support
3
22
4 years, 7 months ago
Shane
create a session in user form
Started by: salimA
in: Toolset Professional Support
2
2
4 years, 7 months ago
Waqar
Styling the checkbox on a toolset form
Started by: Saul Baizman
in: Toolset Professional Support
2
3
4 years, 8 months ago
Saul Baizman
Toolset functionality
Started by: kathrynw
in: Toolset Professional Support
2
2
4 years, 8 months ago
Christian Cox
The membership form keeps getting russian and other spam. How to fix?
Started by: amandaW-2
in: Toolset Professional Support
2
2
4 years, 8 months ago
Christian Cox
Hiding options in the Post Form Content Field
Started by: igorL-3
in: Toolset Professional Support
Quick solution available
Problem: I would like to hide the Fields and Views, Forms, and Access buttons above WYSIWYG editors in my Forms from all Users except Admins.
Solution: Add the following custom code snippet in your child theme's functions.php file:
// https://toolset.com/forums/topic/hiding-options-in-the-post-form-content-field/
// hide advanced form buttons from non-admins
function remove_toolset_buttons(){
global $current_user, $wp_roles;
$admin = 'administrator'; // roles that can see the buttons
// get non-administrator role slugs
if ( ! isset( $wp_roles ) )
$wp_roles = new WP_Roles();
$all_roles = $wp_roles->get_names();
$editable_roles = apply_filters('editable_roles', $all_roles);
$editable_role_names = array();
foreach($editable_roles as $role=>$details) {
$editable_role_names[]= $role;
}
// remove f&v, forms, conditional output buttons
if ( !in_array( $admin, $current_user->roles ) ) {
add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
add_filter( 'toolset_cred_button_before_print', '__return_false' );
}
// remove the Access button
add_filter( 'toolset_editor_add_access_button', function() use ($editable_role_names){
return $editable_role_names;
});
}
add_action( 'init', 'remove_toolset_buttons' );
2
3
4 years, 8 months ago
igorL-3