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 |
---|---|---|---|---|---|
CRED: blank/empty default value for taxonomy select field
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 4 | 1 month ago | |
Access: displaying content template when user doesn't have read permissions
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 6 | 3 months ago | |
How to trigger JQuery on form submission error
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 3 | 10 months, 2 weeks ago | |
Sort taxonomy terms by menu order
Started by: davidS-53 in: Toolset Professional Support |
2 | 3 | 12 months ago | ||
User meta checkbox doesn't work inside conditional
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 3 | 1 year, 1 month ago | |
Possible to pass extra data to generic field?
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 2 | 1 year, 4 months 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 | 1 year, 4 months ago | |
Show last page of view first
Started by: davidS-53 in: Toolset Professional Support |
|
3 | 6 | 1 year, 5 months ago | |
Problem setting minimum image size on CRED form
Started by: davidS-53
in: Toolset Professional Support
Problem: How are image uploads affected by the changes in Toolset Forms 2.4 and what does it mean for validating the image uploads? Solution: Prior to Forms 2.4 a bespoke ajax uploader was used to pre-upload images (i.e. upload images as soon as selected rather than waiting for the form submission). 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: https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_ajax_upload_validate |
|
2 | 3 | 1 year, 6 months ago | |
Update and create Repeating Fields programmatically
Started by: davidS-53
in: Toolset Professional Support
Problem: How can I update or create Repeating fields using WordPress's API to manipulate meta fields (get_post_meta/update_post_metae/add_post_meta)? Solution: Toolset doesn't offer a specific API for this, and our Support Guidelines don't allow direct support on such custom code, we can, however, give an example that will help understand how repeating fields (not repeatable field groups, but repeating fields) can be retrieved and updated. 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: https://kb.onthegosystems.com/code-snippet/get-and-post-repeating-fields-correctly-persisting-the-order/ |
|
2 | 3 | 1 year, 6 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 | 1 year, 6 months ago | |
View not running custom Javascript function after searching/filtering.
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 3 | 1 year, 6 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 | 1 year, 7 months ago | |
Links to filter archives not behaving correctly
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 8 | 1 year, 7 months ago | |
Copy date from one date field to another when saving post
Started by: davidS-53 in: Toolset Professional Support |
|
2 | 3 | 1 year, 7 months ago |