Jaime
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Submit button with a url conditional based on a select field
Commencé par : 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 | Il y a 4 années et 11 mois | |
Radio (or) Checkbox Field pre-selected in a Search
Commencé par : Jaime in: Toolset Professional Support |
|
2 | 7 | Il y a 4 années et 11 mois | |
Displaying CPT based on a search with categories / subcategories
1
2
Commencé par : Jaime in: Toolset Professional Support |
|
2 | 19 | Il y a 4 années et 12 mois | |
Conditional output display shortcode instead of content (navigation pages)
Commencé par : 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 | Il y a 5 années | |
Limit number of selections in a Multi-Select field + Fields not to be selected
Commencé par : 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 | Il y a 5 années | |
Hide results from a search before user search but not show "no items" message
Commencé par : Jaime in: Toolset Professional Support |
|
2 | 11 | Il y a 5 années et 1 mois | |
My Gallery is not showing
Commencé par : Jaime in: Toolset Professional Support |
|
2 | 5 | Il y a 5 années et 1 mois | |
Crear Popups personalizados para mi cliente
Commencé par : Jaime in: Soporte profesional de Toolset |
|
2 | 9 | Il y a 5 années et 1 mois | |
Problem with Toolset + Kleo theme – Incompatibility?
Commencé par : 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 | Il y a 5 années et 3 mois | |
Change user role after CRED post form
Commencé par : 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 | Il y a 5 années et 3 mois | |
Blank Pages and Several errors with Views after Import
Commencé par : 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 | Il y a 5 années et 3 mois | |
Make a taxonomy required in a Post Form
Commencé par : 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 | Il y a 5 années et 3 mois | |
Search: two fields in the same select option
Commencé par : 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 | Il y a 5 années et 3 mois | |
I can't upload a Gallery since the last update
Commencé par : Jaime in: Toolset Professional Support |
|
2 | 2 | Il y a 5 années et 4 mois | |
When user clikc « Add new image » it shows WP library instead computer folder
Commencé par : 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 | Il y a 5 années et 4 mois |