mikeB-14
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 |
---|---|---|---|---|---|
View list with checkbox for select rows and update selected rows submit
1
2
Started by: mikeB-14 in: Toolset Professional Support |
3 | 32 | 5 years, 3 months ago | ||
View list with checkbox for select rows and update selected rows submit
Started by: mikeB-14
in: Toolset Professional Support
Problem: The issue here is that the user was getting the error Solution: In this case it was a Typo. The user add dd_action instead of add_action() Changing it to the correct function call resolved the issue. |
2 | 5 | 5 years, 3 months ago | ||
Delegate Email Please enter a valid delegate email address
Started by: mikeB-14 in: Toolset Professional Support |
2 | 2 | 5 years, 3 months ago | ||
The best way to add more fields to a current live cpt which has data
Started by: mikeB-14 in: Toolset Professional Support |
2 | 2 | 5 years, 4 months ago | ||
How to user past_day(int) as a url_parameter
Started by: mikeB-14 in: Toolset Professional Support |
2 | 3 | 5 years, 4 months ago | ||
Form trigger not working when i have it in a view row
Started by: mikeB-14 in: Toolset Professional Support |
2 | 9 | 5 years, 6 months ago | ||
update a single fields without opening full edit form
Started by: mikeB-14
in: Toolset Professional Support
Problem: After submit Toolset form for editing post, customize the redirected URL. Solution: You can try filter hook "cred_success_redirect", for example: https://toolset.com/forums/topic/update-a-single-fields-without-opening-full-edit-form/#post-1284729 Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect |
2 | 5 | 5 years, 6 months ago | ||
Datepicker not filtering on start of view to today or greater
Started by: mikeB-14
in: Toolset Professional Support
Problem: I have a View with two custom field filters. The first filter is applied using a shortcode attribute. The second filter is a front-end filter using a datepicker field. I can set the default date using TODAY(), but the initial result is not filtered. I would like to filter the initial results, and allow the User to change the filter as needed. Solution: add_filter( 'wpv_filter_query', 'filter_gte_today', 10, 3 ); function filter_gte_today ( $query, $view_settings, $view_id ) { $views = array( 12345 ); $date_slug = 'wpcf-stdstartdate'; $url_param = 'wpv-wpcf-stdstartdate'; // do not edit below this line if( in_array( $view_id, $views) ) { // check to see if the datepicker filter has been manually set or manually unset // if so, bail out and don't modify it if( isset($query['meta_query'])) { $cols = array_column($query['meta_query'], 'key'); if( in_array($date_slug, $cols) || ( isset( $_GET[$url_param] ) && $_GET[$url_param] == '' )) { return $query; } } // datepicker filter has not been set or unset. Use the default value. $today = strtotime('0:00'); $args = array( 'relation' => 'AND', array( 'key' => $date_slug, 'value' => $today, 'compare' => '>=', 'type' => 'numeric' ) ); // add these arguments to your meta query $query['meta_query'] = isset($query['meta_query']) ? $query['meta_query'] : []; $query['meta_query'][] = $args; } return $query; } Change 12345 to match the numeric ID of this View. Change wpcf-stdstartdate to match the date field slug. You must use the 'wpcf-' prefix here. Change wpv-wpcf-stdstartdate to match the URL parameter specified in your Query filter. Relevant Documentation: |
2 | 6 | 5 years, 6 months ago | ||
Display fields of parent for Repeatable field group in edit form and notification
Started by: mikeB-14
in: Toolset Professional Support
Problem: I have an Edit Form used to edit a row of some RFG attached to my custom post type. I would like to display information from the parent custom post in the Form edit page, and I would also like to include information from the parent post in the email notification. Solution: In the Form display section, use the wpv-search-term parameter to access the parent post ID. Then in the email notification, use the @relationship-slug.parent syntax. [types field="task" item="[wpv-search-term param='someparameter']"][/types] In the notification: [types field="email" item="@delegate-group.parent"][/types] Relevant Documentation: |
2 | 7 | 5 years, 6 months ago | ||
I have list view of repeatable rows need to link any row to a edit form
Started by: mikeB-14
in: Toolset Professional Support
Problem: I have a View of repeatable field groups (RFGs) and I want to add a link to edit any row. Solution: Place your Edit RFG Form in an unassigned Content Template (or Template Layout). In the View's Loop, use the Toolset Forms button to insert an Edit Post Link. Choose the Content Template or Template Layout you just created. |
2 | 8 | 5 years, 6 months ago | ||
Adding a hyperlink to a view
Started by: mikeB-14 in: Toolset Professional Support |
2 | 3 | 5 years, 6 months ago | ||
Trying to auto fill the title of repeatable group title with field from parent
Started by: mikeB-14
in: Toolset Professional Support
Problem: The issue here is that the user is creating their RFG on the frontend but wanted the title of the RFG to be auto generated. Solution: The user had this code below. add_action('cred_save_data', 'delegate_title_save_data_action', 10, 2); function delegate_title_save_data_action( $post_id, $form_data ){ // if a specific form if ($form_data['id']==35913) { if(!empty($_POST['wpcf-idx_chantier'])){ $idx_chantier = $_POST['cred_post_parent get="wpcf-idx_chantier"']; } $title = $idx_chantier; $slug = sanitize_title($title); wp_update_post(array('ID' => $post_id, 'post_title' => $title, 'post_name' => $slug)); } } In this user's case they needed to have replace $idx_chantier = $_POST['cred_post_parent get="wpcf-idx_chantier"']; with the proper call for the post parent, which would be |
2 | 7 | 5 years, 6 months ago | ||
Add new role screen does not display properly
Started by: mikeB-14 in: Toolset Professional Support |
2 | 4 | 5 years, 6 months ago | ||
Memory Error and trying to activate toolset access
Started by: mikeB-14
in: Toolset Professional Support
Problem: Solution: Please try to resolve your issue by deactivating ALL third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes? Relevant Documentation: |
2 | 3 | 5 years, 6 months ago | ||
Divi and table template with conditional if not working
Started by: mikeB-14 in: Toolset Professional Support |
3 | 10 | 5 years, 8 months ago |