davidS-53
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é |
---|---|---|---|---|---|
Possible to pass extra data to generic field?
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 2 | Il y a 5 années et 2 mois | ||
Preset value of Taxonomy filter dropdown
Commencé par : davidS-53
in: Toolset Professional Support
Problem: Is there some event I need to trigger to get Views to update the displayed results? Solution: You can try to modify your JS codes as below: https://toolset.com/forums/topic/preset-value-of-taxonomy-filter-dropdown/#post-1367151 Relevant Documentation: |
2 | 3 | Il y a 5 années et 2 mois | ||
Show last page of view first
Commencé par : davidS-53 in: Toolset Professional Support |
3 | 6 | Il y a 5 années et 3 mois | ||
Problem setting minimum image size on CRED form
Commencé par : davidS-53
in: Toolset Professional Support
Problem: Solution: Since Forms 2.4 the native WP uploader is used for logged-in users (subject to the settings in the form). It cannot be used for guest users, for whom images are uploaded along with the form submission. When using the native WP uploader the cred_form_ajax_upload_validate hook can still be used, otherwise the cred_form_validate hook should be used. Relevant Documentation: |
2 | 3 | Il y a 5 années et 4 mois | ||
Update and create Repeating Fields programmatically
Commencé par : davidS-53
in: Toolset Professional Support
Problem: Solution: With repeating fields we have meta key, meta value, and the position of each of the values, to consider in our code. To update, or post such fields, you need not only to pass an array of those values to the field but also the position of each item in the repeating field. Below link holds a full example code, that can be used as a starting point for further customization. Relevant Documentation: |
2 | 3 | Il y a 5 années et 4 mois | ||
JQuery function not running after updating results via AJAX
Commencé par : davidS-53
in: Toolset Professional Support
Problem: Solution: The precise requirements depend on what library is being used, but the code to initialise the JS library should be structured something like this, which uses custom JS events available with Views. These custom events can be found in the JS editor of the Search and Pagination section of the View using the Frontend events button. // 1. Define a function that does "the thing" function theThing() { //do the thing } (function ($) { // 2. Do the thing on initial pageload (DOM ready) $(document).ready(function () { theThing(); }); // 3. Do the thing after ajax custom search $(document).on('js_event_wpv_parametric_search_results_updated', function (event, data) { theThing(); }); })(jQuery); |
2 | 3 | Il y a 5 années et 4 mois | ||
View not running custom Javascript function after searching/filtering.
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 3 | Il y a 5 années et 4 mois | ||
Save text field value to repeating field if it doesn’t already exist
Commencé par : davidS-53
in: Toolset Professional Support
Problem: I have a Form that includes a custom field that accepts multiple values and another custom field that only accepts a single value. If the single value doesn't exist in the multiple value field, I would like to add it using cred_save_data. Solution: You should get_post_meta on the repeating field, to access an array of values it currently stores. Something like this: $itms = get_post_meta( $post_id, 'wpcf-all-items', false ); Now $itms is an array of instance values: Array ( [0] => instance 1 [1] => instance 2 [2] => instance 3 ) Then you can use PHP's in_array function to check to see if the new value already exists. If not, add it. If so, skip adding it. Relevant Documentation: |
2 | 3 | Il y a 5 années et 5 mois | ||
Links to filter archives not behaving correctly
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 8 | Il y a 5 années et 5 mois | ||
Copy date from one date field to another when saving post
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 3 | Il y a 5 années et 5 mois | ||
Views Date filtering unexpected results
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 7 | Il y a 5 années et 6 mois | ||
Set pagination anchor text to be post/term title
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 4 | Il y a 5 années et 6 mois | ||
[wpv-post-previous-link] & [wpv-post-next-link] only toggle between two posts
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 4 | Il y a 5 années et 6 mois | ||
Save value to custom taxonomy term when creating post with CRED form
Commencé par : davidS-53 in: Toolset Professional Support |
2 | 6 | Il y a 5 années et 7 mois | ||
Save value to custom taxonomy term when creating post with CRED form
Commencé par : davidS-53 in: Chat Support |
1 | 1 | Il y a 5 années et 7 mois |