davidS-53
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 |
---|---|---|---|---|---|
Possible to pass extra data to generic field?
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 2 | vor 5 Jahren | ||
Preset value of Taxonomy filter dropdown
Gestartet von: 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 | vor 5 Jahren, 1 Monat | ||
Show last page of view first
Gestartet von: davidS-53 in: Toolset Professional Support |
3 | 6 | vor 5 Jahren, 2 Monaten | ||
Problem setting minimum image size on CRED form
Gestartet von: 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 | vor 5 Jahren, 3 Monaten | ||
Update and create Repeating Fields programmatically
Gestartet von: 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 | vor 5 Jahren, 3 Monaten | ||
JQuery function not running after updating results via AJAX
Gestartet von: 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 | vor 5 Jahren, 3 Monaten | ||
View not running custom Javascript function after searching/filtering.
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 3 | vor 5 Jahren, 3 Monaten | ||
Save text field value to repeating field if it doesn’t already exist
Gestartet von: 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 | vor 5 Jahren, 3 Monaten | ||
Links to filter archives not behaving correctly
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 8 | vor 5 Jahren, 4 Monaten | ||
Copy date from one date field to another when saving post
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 3 | vor 5 Jahren, 4 Monaten | ||
Views Date filtering unexpected results
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 7 | vor 5 Jahren, 5 Monaten | ||
Set pagination anchor text to be post/term title
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 4 | vor 5 Jahren, 5 Monaten | ||
[wpv-post-previous-link] & [wpv-post-next-link] only toggle between two posts
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 4 | vor 5 Jahren, 5 Monaten | ||
Save value to custom taxonomy term when creating post with CRED form
Gestartet von: davidS-53 in: Toolset Professional Support |
2 | 6 | vor 5 Jahren, 5 Monaten | ||
Save value to custom taxonomy term when creating post with CRED form
Gestartet von: davidS-53 in: Chat Support |
1 | 1 | vor 5 Jahren, 5 Monaten |