Mark Lee
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 |
---|---|---|---|---|---|
Grid columns not working, only displays 1 column
Started by: Mark Lee in: Toolset Professional Support |
2 | 2 | 3 years, 9 months ago | ||
Change formatting of taxonomy checkbox field – 3 columns with no bullets
Started by: Mark Lee
in: Toolset Professional Support
Problem: I have a custom search View with checkboxes filters. I would like to organize those into a 3-column display and hide the bullet next to each item. Solution: Use custom CSS to style each item, and use the column-count property to flow the checkboxes into multiple columns. Relevant Documentation: |
2 | 3 | 5 years, 9 months ago | ||
How to make a taxonomy and image upload field required?
Started by: Mark Lee
in: Toolset Professional Support
Problem: I would like to require Users to upload an image and select at least one taxonomy term in my Form. Solution: You can make a custom field image required by editing the custom field in Toolset > Custom fields > Post fields. You can use a custom code snippet with the Forms API to validate at least one term checkbox is checked: <?php /** * New custom code snippet. */ toolset_snippet_security_check() or die( 'Direct access is not allowed' ); add_filter('cred_form_validate','term_checkboxes_form_validation', 10, 2); function term_checkboxes_form_validation( $field_data, $form_data ) { $tax = 'app-name'; $forms = array( 15 ); $msg = 'At least one checkbox is required.'; // you should not edit below this line // field data are field values and errors list($fields,$errors)=$field_data; // validate if correct CRED form ID if ( in_array( $form_data['id'], $forms ) ) { if ( !isset($fields[$tax]['value'][0])) $errors[$tax] = $msg; } return array( $fields, $errors ); } Relevant Documentation: |
2 | 7 | 5 years, 9 months ago | ||
Custom fields page not loading in admin
Started by: Mark Lee in: Toolset Professional Support |
2 | 2 | 5 years, 9 months ago |