markL
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 |
---|---|---|---|---|---|
Additional info in connect existing post select options
Started by: markL in: Toolset Professional Support |
1 | 2 | 3 years, 3 months ago | ||
deprecated php syntax
Started by: markL in: Toolset Professional Support |
2 | 4 | 4 years, 7 months ago | ||
Allow files to be uploaded through the new image upload process
Started by: markL in: Toolset Professional Support |
2 | 2 | 5 years, 5 months ago | ||
Post relationship is not saved correctly in Form
Started by: markL
in: Toolset Professional Support
Problem: I have a Form that creates new child posts and allows the User to select the parent post. The parent post is set correctly based on the current page, but when the child post is created the relationship is not saved and the child post has no parent post. Solution: There is currently a bug affecting post relationships in a new child Form when a Layout is used to design the page. Here's a snippet that you can add to your child theme's functions.php file temporarily to overcome the issue: add_action('cred_save_data', 'toolset_fix_layout_relationship_bug',10,2); function toolset_fix_layout_relationship_bug($post_id, $form_data) { // one array for each form $hash = array( array( 'id' => 12345, 'slugs' => array('coordinator-educator'), ), ); // closure to find the matching array hash item and slug $find = function( $var ) use ($form_data) { $el = ($var['id']==$form_data['id']); return $el; }; // create an array of form IDs where you want to apply this code $forms = array_column( $hash, 'id' ); if ( in_array( $form_data['id'], $forms ) ) { // find the slug array in the matching hash item and use it to connect the parent post $thisHash = array_filter( $hash, $find ); $slugs = $thisHash[array_keys($thisHash)[0]]['slugs']; foreach( $slugs as $slug ) { $parent_id = $_POST['@' . $slug . '_parent']; $parent = toolset_connect_posts( $slug, $parent_id, $post_id ); } } } Replace 12345 with the numeric ID of the new Child Form. The other ticket gives examples for extending this approach to multiple forms or to forms with multiple post relationships. Relevant Documentation: |
2 | 4 | 5 years, 11 months ago | ||
toolset_get_related_posts() documentation
Started by: markL in: Toolset Professional Support |
3 | 3 | 5 years, 11 months ago | ||
Comments closed on pages where there is a user form
Started by: markL in: Toolset Professional Support |
1 | 2 | 6 years, 2 months ago | ||
Display repeating field groups authored by other users?
Started by: markL in: Toolset Professional Support |
2 | 4 | 6 years, 2 months ago | ||
Relationship form on front side creating js error
Started by: markL in: Toolset Professional Support |
2 | 2 | 6 years, 4 months ago | ||
Conditional display based on repeating field group select field value
Started by: markL
in: Toolset Professional Support
Problem: I am trying to use conditionals in a Form but they don't seem to be working. I would like to show and hide some elements based on the selection in a field. Solution: Be sure to use Forms Conditional Groups, not Views Conditional HTML. Forms Conditional Groups can be accessed in the "Add generic fields" dialog, and are designed to respond to Form field selections. Relevant Documentation: https://wp-types.com/documentation/user-guides/conditional-display-for-form-inputs/ |
2 | 2 | 6 years, 5 months ago | ||
Repeating fields on the front end
Started by: markL in: Toolset Professional Support |
1 | 3 | 6 years, 5 months ago | ||
Date-picker broken for all except the first instance on a page
Started by: markL in: Toolset Professional Support |
2 | 11 | 6 years, 5 months ago | ||
Selecting Parent Posts Using Forms to Create Child Items Ajax Submit Is Weird
Started by: markL in: Toolset Professional Support |
2 | 5 | 6 years, 5 months ago | ||
Get CRED form_id by slug
Started by: markL in: Toolset Professional Support |
2 | 3 | 6 years, 5 months ago | ||
CRED form placeholders not displaying
Started by: markL in: Toolset Professional Support |
2 | 7 | 6 years, 7 months ago | ||
Google App Engine 10000 file limit and toolset sites
Started by: markL
in: Toolset Professional Support
Problem: Solution: There is currently no solution for this as google app engine limits the amount of files that can be uploaded and our toolset plugins are over this 10000 file limit. This was possible when the embedded versions of toolset existed but those are no longer available. |
2 | 7 | 6 years, 11 months ago |