J S
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Integrating WooCommerce Name Your Price Extenstion into CRED
Started by: J S
in: Toolset Professional Support
Problem: The issue here is that the user wanted to use the Name your Price plugin with our Toolset forms when users submit their own customised payment. Solution: The solution for this can be seen below. |
2 | 4 | 6 years, 2 months ago | ||
Unable to insert CRED Edit Form Button into View
Started by: J S in: Toolset Professional Support |
2 | 6 | 6 years, 3 months ago | ||
How to make post fields required?
Started by: J S
in: Toolset Professional Support
Problem: The issue here is that the user wanted to make their post fields required in Toolset Forms. Solution: We actually have a hook for this and you can set the field to be required by using out validation hook to ensure that its not being submitted empty. |
2 | 2 | 6 years, 3 months ago | ||
Featured Image Size Validation in Form
Started by: J S
in: Toolset Professional Support
Problem: I would like to validate the dimensions of the Featured Image uploaded in Forms. Solution: add_action('cred_form_ajax_upload_validate', 'toolset_min_img_size_restriction',10,2); function toolset_min_img_size_restriction($error_fields, $form_data) { $forms = array( 123 ); // Field data are field values and errors list($fields,$errors)=$error_fields; if (in_array($form_data['id'], $forms ) && isset($_FILES['wpcf-single-img']['tmp_name']) ) { $target_min_width = 300; $target_min_height = 200; $check = getimagesize( $_FILES['wpcf-single-img']['tmp_name'] ); if ( $check !== false ) { // check the dimensions only, independent of the orientation. // if the height is greater than the width, switch the values for comparison. $width = ($check[0] >= $check[1]) ? $check[0] : $check[1]; $height = ($check[1] < $check[0]) ? $check[1] : $check[0]; if ( $width < $target_min_width || $height < $target_min_height ) { $errors['single-img'] = __("Image too small", "your-theme-domain"); } } } $field_data = array($fields,$errors); //return result return $field_data; } Replace "single-img" with the slug of your custom field in all 3 places. Notice that the first two use the "wpcf-" prefix but the third does not. You should maintain this format. Replace 123 with the numeric ID of this Form, or a comma-separated list of Form IDs. Replace 300 and 200 with the desired minimum dimensions. You can modify the error message "Image too small" as well as the theme domain context for translations. Relevant Documentation: |
2 | 4 | 6 years, 3 months ago | ||
Full Width Background using Generate Press Theme
Started by: J S
in: Toolset Professional Support
Problem: Solution: There is a minor conflict between Generate Press's CSS and the Bootstrap rules for the .container class, and you need to add a little custom CSS to fix that, as described below: https://toolset.com/forums/topic/full-width-background-using-generate-press-theme/#post-954314 |
2 | 3 | 6 years, 3 months ago | ||
Limiting custom field length to display
Started by: J S
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply Relevant Documentation: |
2 | 3 | 6 years, 3 months ago | ||
Conditional Display of Row for Gallery if More than Just Featured Image?
Started by: J S in: Toolset Professional Support |
2 | 4 | 6 years, 4 months ago | ||
Styling the Distance Filter
Started by: J S
in: Toolset Professional Support
Problem: I would like to apply custom styles to the distance filter elements. Solution: Use custom CSS to apply any custom styles you want to the distance filter elements. Add the CSS to the Search and Pagination editor's JS panel. Relevant Documentation: |
2 | 4 | 6 years, 4 months ago | ||
Can't install reference site as plugins are outdated…
Started by: J S in: Toolset Professional Support |
1 | 2 | 6 years, 4 months ago | ||
Conditional Fields in CRED form based on Selected Taxonomy
Started by: J S
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 7 | 6 years, 7 months ago | ||
File upload field not working properly on CRED form
Started by: J S in: Toolset Professional Support |
1 | 3 | 6 years, 7 months ago | ||
How to set a new location for uploaded files/documents?
Started by: J S
in: Toolset Professional Support
Problem: Solution: Unfortunately this is not possible, as you know we use the default upload location for wordpress to store the uploaded files. This might be possible with some custom coding but i'm unable to provide a custom coded solution for this. What I recommend is that you contact one of our certified consultants for further assistance on a custom solution for this. |
2 | 3 | 6 years, 7 months ago | ||
Initial Post Type Setup & CRED Form Options
Started by: J S in: Toolset Professional Support |
2 | 7 | 6 years, 7 months ago | ||
Conditional Fields in form based on Selected Taxonomy
Started by: J S in: Toolset Professional Support |
2 | 3 | 6 years, 7 months ago | ||
Displaying uploaded files as icons with file name instead of url link
Started by: J S in: Toolset Professional Support |
2 | 2 | 6 years, 7 months ago |