I have bult a form on two sites of mine one in English and one in Hungarian.
On the Hungarian version the required fields do not work properly since you can pass them without selecting an option while on the English version it works fine.
If it works on one site it should work on the other.
Both sites use the same configuration.
I would highly appreciate if you could assist me in solving this issue.
Regards,
Phil
]]>/* Disable form validation error messages */
/* @link https://wpforms.com/developers/how-to-add-custom-css-styles-for-wpforms/ */
.wpforms-field-required ~ em, input.wpforms-error ~ em {
display
:
none
!important
;
}
.wpforms-field-required ~ em, input.wpforms-error ~ em {
display
:
none
!important
;
}
Until now, my form always included [file* profilepicture limit:5000000 filetypes:png|jpg|jpeg]
so that a file had to be submitted. For a few days now, however, it is no longer a required field and the form can also be sent without a file.
As far as I can tell, nothing has changed on my site (no other plugins have been installed) and it has always worked fine for the last 2 years.
Could it be that file*
no longer works correctly with the latest update 5.9 a few days ago? Can anyone replicate the error on their site?
When i switch off the requirement on the fields i instead get the error ‘There was an error trying to send your message…’ for spam submission detected. When this happens ‘CF7 flamingo’ indicates the submission failed due to google recaptcha.
So when i disable recaptcha and fill in the form I get ‘message successfully sent’ and i receive the email… but the email (and flamingo) does NOT contain any of the info input in the form, its empty.
It seems the form does not recognise or pass on any of my input text or selections …and that is what is causing the errors and spam detection in the recaptcha.
I can confirm that the sites are successfully sending WP emails through SMTP and via other forms where input is recognised correctly.
The error remains even when ALL other plugs are deactivated and when the default theme is used. It appears to ONLY affect Contact Form 7. I can also confirm that the form is working correctly on a clone of one of the sites (on a different test domain).
I am completely baffled as to why these 3 sites have this error. They were built at different times and have different plugins. They are all hosted on IONOS but other sites on the same shared server have CF7 forms that work.
Can anyone suggest something i haven’t tried yet? I’m pulling my hair out!
Perhaps the plugin author has seen this before?
Many thanks!
]]>When a customer is about to complete an order with PayPal as the payment option, it will never proceed because it asks for the ‘Billing Company Name’ field to be filled, even though I’ve set this field to be optional. If the customer selects any other payment method than PayPal, the order goes through without requiring to fill the ‘Billing Company Name’ field.
I’ve tried adding the custom code shown below:
add_filter( 'woocommerce_default_address_fields' , 'make_company_field_optional', 90, 1);
function make_company_field_optional( $address_fields ) {
$address_fields['company']['required'] = false;
return $address_fields;
}
But it does absolutely nothing. I also tested to make other fields REQUIRED and it does work, so for some reason it won’t take the company name field as optional.
Note for the code part:
I also tried other filters such as woocommerce_billing_fields, woocommerce_shipping_fields and woocommerce_checkout_fields but it didn’t help.
how can i make the attribute “color” required
i found this code but don’t know what to change
https://docs.wclovers.com/tweaks/#set-attributes-required
]]>