Cookie popup scrip

lu8ino
9 Posts
lu8ino posted this 29 December 2023
Ask a Question

HI, waht language can be used_ OR what format?
Can you jive me just example of usage ?

HI, waht language can be used_ OR what format? Can you jive me just example of usage ?
Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
lu8ino
9 Posts
lu8ino posted this 29 December 2023

or better ,
if I will use just javascript to set cookies, what is name of cookie what need to be set so I can send Contact forms when recaptcha is enabled ?

currently using this but can not send any Contact form.

/* Create the expiry date (today + 1 year) */
var CookieDate = new Date;
CookieDate.setFullYear(CookieDate.getFullYear( ) +1);

/* Set the cookie (acceptance of cookies usage) */
document.cookie = 'infoCookies=true; expires=' + CookieDate.toGMTString( ) + ';';

or better , if I will use just javascript to set cookies, what is name of cookie what need to be set so I can send Contact forms when recaptcha is enabled ? currently using this but can not send any Contact form. /* Create the expiry date (today + 1 year) */ var CookieDate = new Date; CookieDate.setFullYear(CookieDate.getFullYear( ) +1); /* Set the cookie (acceptance of cookies usage) */ document.cookie = 'infoCookies=true; expires=' + CookieDate.toGMTString( ) + ';';
Support Team
Support Team posted this 05 January 2024

Hello Lubomir,

The exact language or format for a cookie popup depends on what exactly you want to implement on your website. Look for some samples on the Internet.

If you want to set a cookie using JavaScript to enable sending contact forms when reCAPTCHA is enabled, you generally wouldn't need to set a specific cookie for that purpose. The reCAPTCHA functionality is usually handled separately, and you might need to check if the reCAPTCHA verification was successful before allowing the form submission.

Additionally, remember that regulations such as GDPR may have specific requirements for cookie consent mechanisms.
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Lubomir, The exact language or format for a cookie popup depends on what exactly you want to implement on your website. Look for some samples on the Internet. If you want to set a cookie using JavaScript to enable sending contact forms when reCAPTCHA is enabled, you generally wouldn't need to set a specific cookie for that purpose. The reCAPTCHA functionality is usually handled separately, and you might need to check if the reCAPTCHA verification was successful before allowing the form submission. Additionally, remember that regulations such as GDPR may have specific requirements for cookie consent mechanisms. ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
lu8ino
9 Posts
lu8ino posted this 05 January 2024

i still have problme to submit Contact form after enabling reCaptcha.
How can I verify if it is working ?

i still have problme to submit Contact form after enabling reCaptcha. How can I verify if it is working ?
Support Team
Support Team posted this 05 January 2024

Thanks for the response Lubomir,

Try to remove the recaptcha keys and check if the contact forms submitting the form.

If you can see the recaptcha badge down on your website. It means that it's active.

Perhaps you need to change it. Check our documentation below
https://nicepage.com/doc/61415/recaptcha-integration

Please share the website link
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Thanks for the response Lubomir, Try to remove the recaptcha keys and check if the contact forms submitting the form. If you can see the recaptcha badge down on your website. It means that it's active. Perhaps you need to change it. Check our documentation below https://nicepage.com/doc/61415/recaptcha-integration Please share the website link ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments