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