michaelB-31
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Split: Form submits after the error message
Iniciado por: michaelB-31 en: Toolset Professional Support |
|
3 | 13 | hace 6 meses | |
File upload size limit
Iniciado por: michaelB-31
en: 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 | hace 6 meses, 3 semanas | |
The [cred_delete_post_link] creates an empty iframe, which creates AdBlock error
Iniciado por: michaelB-31 en: Toolset Professional Support |
|
2 | 5 | hace 2 años, 5 meses | |
"Use the WordPress Media Library manager for uploads" not working
Iniciado por: michaelB-31 en: Toolset Professional Support |
2 | 4 | hace 3 años, 5 meses | ||
Performance problem with large tables (legacy post relationships)
Iniciado por: michaelB-31 en: Toolset Professional Support |
|
2 | 13 | hace 3 años, 6 meses | |
Whole Layouts module not working after update (really slow / timeouts)
Iniciado por: michaelB-31 en: Toolset Professional Support |
|
2 | 11 | hace 3 años, 7 meses |