Thanks for the suggestion, but this does not work. When I return the shortcode as a message in the avf_contact_form_recaptcha_disabled_msg
filter, the shortcode is rendered verbatim on the page and not replaced with the correct button.
I cannot embed the shortcode on the contact form page itself, as it would be rendered all the time. I only want to render it when the user has disabled the reCAPTCHA cookie.
I’ve seen this post because we have implemented a “opted out by default” strategy where cookies are not accepted by default. In this case, the contact form does not work due to the issue mentioned above. Changing the cookies to be accpted by default is not an option, as it is not fully GDPR-compliant.
At least we can override the message with the avf_contact_form_recaptcha_disabled_msg
filter and tell the user to send an email instead.
However, I would like to provide the user a way to reopen the cookie modal popup through a link. Is that possible? For instance, the message below the form could read: “You have disabled the cookies necessary to send this form. Please enable the cookies through by clicking here.” So, wow can I open that popup manually?
(I am aware that there is a 🔒 symbol in the bottom right of the page, but that is not really discoverable easily.)