Does Toolset play well with WooCommerce Memberships & Subscriptions
Started by: gabrielG
in: Toolset Professional Support
2
2
8 years, 1 month ago
Nigel
same id
Started by: abold
in: Toolset Professional Support
2
6
8 years, 1 month ago
Minesh
Allow Media Upload in a CRED form
Started by: Rich
in: Toolset Professional Support
Quick solution available
3
6
8 years, 1 month ago
fernandoS-3
How to expire users that are registered with payment formula (CRED registration)
Started by: s1
in: Toolset Professional Support
3
7
8 years, 1 month ago
Juan
Issue with: Set checked by default (on new post)?
Started by: Rich
in: Toolset Professional Support
Quick solution available
2
4
8 years, 2 months ago
Minesh
Forget Password Form
Started by: matthewS-5
in: Toolset Professional Support
2
3
8 years, 2 months ago
matthewS-5
Error uploading image to CRED form
Started by: natashaB
in: Toolset Professional Support
Quick solution available
Problem:
Validate fields value in CRED user form.
I'm using a function to validate the form data :
add_filter('cred_form_validate_605', 'validate_form_with_id_605');
function validate_form_with_id_605( $data ) {
list($fields,$errors)=$data;
if (empty($fields['first_name']['value'])) {$errors['first_name'] = 'Missing';}
if (empty($fields['last_name']['value'])) {$errors['last_name'] = 'Missing';}
return array($fields,$errors);
}
Solution:
You can try to modify the PHP codes as below and test again:
add_filter('cred_form_validate_605', 'validate_form_with_id_605');
function validate_form_with_id_605( $data ) {
if(!isset($_POST['form_submit_1'])){
list($fields,$errors)=$data;
if (empty($fields['first_name']['value'])) {$errors['first_name'] = 'Missing';}
if (empty($fields['last_name']['value'])) {$errors['last_name'] = 'Missing';}
}
return array($fields,$errors);
}
Relevant Documentation:
2
5
8 years, 2 months ago
natashaB
Subscription renewal – 6 days notice too short; renew before expire.
Started by: jamesH-10
in: Toolset Professional Support
2
2
8 years, 2 months ago
Juan
Continued – Save avg of child cpf to parent radio cpf to allow searching
Started by: Geoffrey Cleverley
in: Toolset Professional Support
3
16
8 years, 2 months ago
Geoffrey Cleverley
Submit button is disabled
Started by: Timothy
in: Toolset Professional Support
2
6
8 years, 2 months ago
Timothy
Classifieds Payment Setup
Started by: Brent Urbanski
in: Toolset Professional Support
2
4
8 years, 2 months ago
Shane
How can I show hide child posts with a membership button tied to a userprofile?
Started by: thomasH-7
in: Toolset Professional Support
2
2
8 years, 3 months ago
Luo Yang
User Registration with Woocommerce and Preventing Access to CRED Forms
Started by: chaseI
in: Toolset Professional Support
3
12
8 years, 3 months ago
chaseI
Adding Javascript to CRED Post Form
Started by: Nicholas
in: Toolset Professional Support
2
3
8 years, 3 months ago
Nicholas
Searching Book Review Child CPT and Book Parent CPT by Star Ratings
Started by: Geoffrey Cleverley
in: Toolset Professional Support
Quick solution available
3
13
8 years, 3 months ago
Geoffrey Cleverley