davidA-16
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 |
|---|---|---|---|---|---|
|
"Remember to remove Toolset from this website." wont remove even though we have
Started by: davidA-16 in: Toolset Professional Support |
|
2 | 2 | 1 year, 6 months ago | |
|
converting user_email field from a register form to lowercase
Started by: davidA-16
in: Toolset Professional Support
Problem: Is there any documentation that you are following? Is there a similar example that we can see? add_action('cred_before_save_data', 'my_before_save_data_action',10,1);
function my_before_save_data_action($form_data)
{
// if a specific form
// 61544 = register form v2
if ($form_data['id']== 61544)
{
if (isset($_POST['user_email']))
{
$lowercaseemail = strtolower($_POST['user_email']);
$_POST['user_email'] = $lowercaseemail;
}
}
}Solution: Can you please try the following code to see if it achieves what you need? add_action("cred_before_save_data", "my_before_save_data_action", 10, 1);
function my_before_save_data_action($form_data)
{
// if a specific form
// 61544 = register form v2
if ($form_data["id"] == 61544) {
if (isset($_POST["user_email"])) {
$lowercaseemail = strtolower($_POST["user_email"]);
$_POST["wpcf-user_email"] = $lowercaseemail;
}
}
} |
|
2 | 2 | 2 years ago | |
|
map block causes a .js error
Started by: davidA-16 in: Toolset Professional Support |
|
2 | 3 | 3 years, 2 months ago |