Jacques Spijkers
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 |
---|---|---|---|---|---|
filter on currend userid / loggedin user
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 5 | 5 years, 5 months ago | ||
SQL
1
2
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 20 | 6 years, 7 months ago | ||
Upload file / image with CRED fails for some Users
Started by: Jacques Spijkers
in: Toolset Professional Support
Problem: I have a CRED form that allows Users to upload files or images. When some Users are logged in, the upload process always fails with the message "There was an error uploading your file." When admin Users are logged in, the upload process works without any errors. Solution: In this case, the custom role did not have the permission to create new Media posts in Toolset > Access Controls > Post Types > Media. Adding the permission solved the problem. |
2 | 12 | 6 years, 8 months ago | ||
Read-only cred forms
Started by: Jacques Spijkers
in: Toolset Professional Support
Problem: When certain Users visit the CRED form, it should be displayed as "read-only". Other Users should see the standard CRED form. Solution: There's not an easy way to do this with CRED, because the readonly attribute does not apply to all kinds of fields. Instead, you could use Access to hide the entire CRED form and show something else in its place. For instance, you could show a View that displays the post and custom field information in text format. If you want to format that information to look like a read-only form, it will require custom code. Relevant Documentation: https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field |
2 | 4 | 6 years, 9 months ago | ||
Upload to server
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 3 | 6 years, 10 months ago | ||
Copy parent and grandparent fields to child post
Started by: Jacques Spijkers
in: Toolset Professional Support
Problem: I would like to use a CRED form to create a child post. When the post is saved, I would like to copy some custom fields from the parent and grandparent posts into the child post. Solution: Use the CRED API cred_save_data method to automate this process. The link between parent / child posts is saved as a custom field on the child post with the name syntax "_wpcf_belongs_" + parent post type slug + "_id". Here is an example: add_action('cred_save_data', 'save_parent_fields_to_child_fields',10,2); function save_parent_fields_to_child_fields($post_id, $form_data) { // update this to match your CRED form ID if ($form_data['id'] == 12345) { // get the parent chosen in CRED form and use that to get parent and grandparent information $parent_id = $_POST['_wpcf_belongs_werknemers_id']; $parent_first_name = get_post_meta($parent_id, 'wpcf-voornaam-medewerker', true); $parent_last_name = get_post_meta($parent_id, 'wpcf-achternaam-medewerker', true); $grandparent_id = get_post_meta($parent_id, '_wpcf_belongs_werkgever_id', true); $grandparent_first_name = get_post_meta($grandparent_id, 'wpcf-voornaam-werkgever', true); $grandparent_last_name = get_post_meta($grandparent_id, 'wpcf-achternaam-werkgever', true); // set the child post custom field values update_post_meta($post_id, 'wpcf-voornaam-medewerker', $parent_first_name ); update_post_meta($post_id, 'wpcf-achternaam-medewerker', $parent_last_name ); update_post_meta($post_id, 'wpcf-voornaam-werkgever', $grandparent_first_name ); update_post_meta($post_id, 'wpcf-achternaam-werkgever', $grandparent_last_name ); } } Relevant Documentation: |
2 | 13 | 6 years, 10 months ago | ||
Duplicate field groups and fields
Started by: Jacques Spijkers
in: Toolset Professional Support
Problem: I have a custom field with a lot of options. I would like to create a clone of this field so I do not have to recreate all the options. Solution: There's not a direct way to copy fields or field options into another field group in wp-admin, but Toolset Import / Export gives you the ability to export your Types field information into a zip file, and import Types fields from a zip file. First, create the field copy in the 2nd group. Add one or two options manually. Then export your Types field information. Expand that zip file and edit the XML document to copy the options from field "a" to field "b". Then repackage a new zip file and import the modified Types data. |
2 | 4 | 7 years ago | ||
Can't find beta of types
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 3 | 7 years ago | ||
filter via on custom user field
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 9 | 7 years, 1 month ago | ||
Datepicker style
Started by: Jacques Spijkers
in: Toolset Professional Support
Problem: There is a problem with the layout of the datepicker cells in my custom search form. Solution: Add some specificity to conflicting stylesheets to prevent selector clashes. |
2 | 8 | 7 years, 1 month ago | ||
Responsive table
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 5 | 7 years, 1 month ago | ||
disable date picker
1
2
3
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 43 | 7 years, 2 months ago | ||
Broken output in tableview
1
2
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 21 | 7 years, 2 months ago | ||
Showing child posts / views in views
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 15 | 7 years, 2 months ago | ||
Trying tot use cpt field (URL) in beaver builder
Started by: Jacques Spijkers in: Toolset Professional Support |
2 | 10 | 7 years, 3 months ago |