Jaime
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Submit button with a url conditional based on a select field
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I have a Form that includes a select field. Depending on the selection, I would like to redirect the User to a different location. Solution: Use the cred_success_redirect hook to redirect based on the form contents: add_filter('cred_success_redirect', 'custom_redirect_form_abc',10,3); function custom_redirect_form_abc($url, $post_id, $form_data) { if ($form_data['id']==837){ if ( get_post_meta($post_id, 'wpcf-tipo-de-empresa', true ) == 'Empresa') { $url = "http://bormujazz.com/form-empresa"; }elseif ( get_post_meta($post_id, 'wpcf-tipo-de-empresa', true ) == 'Profesional') { $url = "http://bormujazz.com/form-profesional/"; } } return $url; } Relevant Documentation: |
|
3 | 7 | vor 4 Jahren, 11 Monaten | |
Radio (or) Checkbox Field pre-selected in a Search
Gestartet von: Jaime in: Toolset Professional Support |
|
2 | 7 | vor 4 Jahren, 12 Monaten | |
Displaying CPT based on a search with categories / subcategories
1
2
Gestartet von: Jaime in: Toolset Professional Support |
|
2 | 19 | vor 5 Jahren | |
Conditional output display shortcode instead of content (navigation pages)
Gestartet von: Jaime
in: Toolset Professional Support
Problem: When I place pagination shortcodes inside a conditional, the shortcodes are written out in the page content instead of the pagination markup. Solution: There is a known issue with long conditional content in certain versions of PHP. Here are 3 possible workarounds: ini_set('pcre.jit', false); 3. Add the following line to your php.ini file (you may need your host's assistance for this): pcre.jit= 0 Relevant Documentation: |
|
2 | 3 | vor 5 Jahren | |
Limit number of selections in a Multi-Select field + Fields not to be selected
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I have added some custom JavaScript to a Toolset Form so that I can limit the number of selections in a multiselect field, and also deactivate some other inputs. It was working correctly until recently, and I'm not sure why it is broken now. Solution: Looks like at least two issues here: jQuery(document).ready(function($){ $(".js-example-basic-multiple-limit > div > select").select2({ placeholder: "Selecciona categoría", maximumSelectionLength: 3 }); }); Next you must exclude some files from Autoptimize's minification process. The list of those files can be found at the link below. Relevant Documentation: |
|
2 | 3 | vor 5 Jahren | |
Hide results from a search before user search but not show "no items" message
Gestartet von: Jaime in: Toolset Professional Support |
|
2 | 11 | vor 5 Jahren, 1 Monat | |
My Gallery is not showing
Gestartet von: Jaime in: Toolset Professional Support |
|
2 | 5 | vor 5 Jahren, 1 Monat | |
Crear Popups personalizados para mi cliente
Gestartet von: Jaime in: Soporte profesional de Toolset |
|
2 | 9 | vor 5 Jahren, 1 Monat | |
Problem with Toolset + Kleo theme – Incompatibility?
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I use the Kleo theme and it seems like my site layout is broken when I activate Toolset plugins. Is there a fundamental compatibility problem with this theme? Solution: There seems to be a compatibility problem between Bootstrap and Kleo. You can continue to use Toolset and Kleo together, but you should deactivate Bootstrap in Toolset > Settings > General. Bootstrap grid features will be unavailable in Toolset, but other features will continue to work as expected. Relevant Documentation: |
|
2 | 3 | vor 5 Jahren, 3 Monaten | |
Change user role after CRED post form
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I copied some code I already had in place and made some modifications, but it causes an error and I can't figure out why. Solution: If you reuse the same function names you will experience an error. Be sure the function names are unique. |
|
2 | 3 | vor 5 Jahren, 3 Monaten | |
Blank Pages and Several errors with Views after Import
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I have "Import" some contents to the new site and I'm not sure why the site is experimenting strange behaviours. Sometimes the Install New Plugin page its not working, sometimes the Home appears in blank page, sometimes the /wp-admin is also blank Solution: When you see a blank WordPress page, there might be some PHP errors in your website. I suggest you enable PHP debug mode, and check the debug logs. Relevant Documentation: https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/ |
|
2 | 3 | vor 5 Jahren, 3 Monaten | |
Make a taxonomy required in a Post Form
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I would like to require at least one taxonomy term is selected in a Form. Solution: Use the cred_form_validate API to check the Form submission to confirm at least one term is selected. add_filter('cred_form_validate','term_checkboxes_form_validation', 10, 2); function term_checkboxes_form_validation( $field_data, $form_data ) { $tax = 'YOUR-TAXONOMY-SLUG'; $forms = array( 12345 ); $msg = 'At least one term is required.'; // you should not edit below this line // field data are field values and errors list($fields,$errors)=$field_data; // validate if correct CRED form ID if ( in_array( $form_data['id'], $forms ) ) { if ( !isset($fields[$tax]['value']) || $fields[$tax]['value']=='') $errors[$tax] = $msg; } return array( $fields, $errors ); } Relevant Documentation: |
|
2 | 9 | vor 5 Jahren, 3 Monaten | |
Search: two fields in the same select option
Gestartet von: Jaime
in: Toolset Professional Support
Problem: I have two similar fields in different custom post types. I would like to use one filter control to filter both fields. Solution: The only way you could filter both fields effectively is if the same field (same slug) is used in both post types. Otherwise, custom code is required and even then some Views features might not be supported. My best suggestion is to place the field in its own field group, and share that field group across both post types. |
|
2 | 3 | vor 5 Jahren, 4 Monaten | |
I can't upload a Gallery since the last update
Gestartet von: Jaime in: Toolset Professional Support |
|
2 | 2 | vor 5 Jahren, 4 Monaten | |
When user clikc „Add new image“ it shows WP library instead computer folder
Gestartet von: Jaime
in: Toolset Professional Support
Problem: Solution: If you do not want to use Media library - you should disable the checkbox setting and save your form as shown with the following Doc: Relevant Documentation: |
|
2 | 4 | vor 5 Jahren, 4 Monaten |