Yash Kumar
Forum Replies Created
-
Hi @wpmudevsupport14 ,
It will work though in twenty twenty five as its a default theme from wordpress, although your feature for captcha will work on any of the fresh website, But I want to use this existing site, Is there any way out your team, can resolve this?
TY!- This reply was modified 3 months ago by Yash Kumar.
Hello @wpmudev-support9 ,
Please find the form page url below, as the captcha is implimented in this, but its not visible –
https://staging.sustainabilityeconomicsnews.com/contact/Also to confirm you one thing, only forminator is active on this staging site, I have deactivated rest plugins.
TY!- This reply was modified 3 months ago by Yash Kumar.
- This reply was modified 3 months ago by Yash Kumar.
- This reply was modified 3 months ago by Yash Kumar.
<a href=”https://drive.google.com/file/d/1lnUoR5AmcSpF_gGfKyEEBfXUUVwvt1ed/view?usp=sharing “>https://drive.google.com/file/d/1lnUoR5AmcSpF_gGfKyEEBfXUUVwvt1ed/view?usp=sharing
please find the drive link for the form, Also to make sure, I am using the same key I have generated for from Google.Please let me know, what can be done next, the code I have shared below is generated from the console only –
Although to make you clarify on this, that none of the css has been applied which says, display none etc…, But still captcha is not visible, I guess the issue is in export file, Thanks!<div class="forminator-row"><div id="captcha-1" class="forminator-field-captcha forminator-col forminator-col-12 captcha"><div class="forminator-captcha-left forminator-g-recaptcha recaptcha-invisible" data-theme="light" data-badge="inline" data-sitekey="6LdcVYwqAxxxxxx_xxxxxx_xxxx" data-size="invisible"></div> </div></div>
Ohh, Hi there, Sorry I missed the notifications, Thanks much for your help, But still it isn’t works the way I want, Actually i am having two fields, name and email in one form, and any user is passing anything in both the fields.
for e.g below –
Name – jhhggfhfh(or number 786876886687)Email – [email protected]
I need help to fix this….
Please help, below is my code, I have modified –
************************************************************add_filter( 'forminator_custom_form_submit_errors', 'forminator_custom_validate_field', 99, 3 );
function forminator_custom_validate_field( $submit_errors, $form_id, $field_data_array ) {
// Define the form ID to check
$form_ids = array( 13152 ); // Form ID(s) to check
// Define the fields to validate
$fields = array( 'name-1', 'email-1' ); // List of fields to validate
// Define the error message
$error_msg = 'Invalid input'; // Custom error message
// Check if the current form is in the list of form IDs
if ( in_array( $form_id, $form_ids ) ) {
foreach( $field_data_array as $arr ) {
if ( in_array( $arr['name'], $fields ) ) {
// YOUR VALIDATION CODE GOES HERE
// The value that you want to check is in $arr['value'];
// Example validation: Check if field 'name-1' contains the string 'TEXT'
if ($arr['name'] === 'name-1' && strpos( $arr['value'], 'TEXT' ) !== false) {
// Issue error if validation fails
$submit_errors[][$arr['name']] = $error_msg;
}
// Example validation: Check if email field 'email-1' is not a valid email address
if ($arr['name'] === 'email-1' && !filter_var($arr['value'], FILTER_VALIDATE_EMAIL)) {
// Issue error if validation fails
$submit_errors[][$arr['name']] = 'Invalid email address';
}
}
}
}
return $submit_errors;
}Hi @jules-colle , I am facing the same issue as above
I tried using jquery updater and jquery version control but when i enter this (jQuery.fn.jquery) in console on the website it shows me ‘2.1.3’ this, Please help on this
Thanks!
- This reply was modified 2 years, 3 months ago by Yash Kumar.