michaelB-31
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Split: Form submits after the error message
Commencé par : michaelB-31 in: Toolset Professional Support |
|
3 | 13 | Il y a 6 mois | |
File upload size limit
Commencé par : michaelB-31
in: Toolset Professional Support
Problem: I have a form using AJAX without the WordPress Media Library manager and want to limit the upload file size. Despite following the documentation and various threads, my current code does not restrict file uploads to the desired size limit. Solution: Ensure the validation code runs only for the specific form and use the $_FILES array to check the file size correctly: add_filter('cred_form_validate', 'my_validation', 10, 2); function my_validation($error_fields, $form_data) { // Ensure this code runs only for the specific form $form_id = 12345; // Replace with your actual form ID if ($form_data['id'] != $form_id) { return $error_fields; } list($fields, $errors) = $error_fields; // Validate 'wpcf-beleg-ausgabe' field if (isset($_FILES['wpcf-beleg-ausgabe']) && $_FILES['wpcf-beleg-ausgabe']['size'] > 10000) { $errors['wpcf-beleg-ausgabe'] = 'FILE SIZE TOO BIG'; } // Validate 'wpcf-beleg-einnahme' field if (isset($_FILES['wpcf-beleg-einnahme']) && $_FILES['wpcf-beleg-einnahme']['size'] > 10000) { $errors['wpcf-beleg-einnahme'] = 'FILE SIZE TOO BIG'; } return array($fields, $errors); } Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate |
|
2 | 6 | Il y a 6 mois et 3 semaines | |
The [cred_delete_post_link] creates an empty iframe, which creates AdBlock error
Commencé par : michaelB-31 in: Toolset Professional Support |
|
2 | 5 | Il y a 2 années et 5 mois | |
"Use the WordPress Media Library manager for uploads" not working
Commencé par : michaelB-31 in: Toolset Professional Support |
2 | 4 | Il y a 3 années et 6 mois | ||
Performance problem with large tables (legacy post relationships)
Commencé par : michaelB-31 in: Toolset Professional Support |
|
2 | 13 | Il y a 3 années et 6 mois | |
Whole Layouts module not working after update (really slow / timeouts)
Commencé par : michaelB-31 in: Toolset Professional Support |
|
2 | 11 | Il y a 3 années et 7 mois |