Set dropdown value box with a cookie

[ad_1]

Hello @rosco12345

Thank you very much for using our plugin. I assume you are referring to select one of the Dropdown choices.

For example, if the Dropdown field is the fieldname1, and the cookie name is my_cookie, you can insert a calculated field in the form to be used as an auxiliary (You can hide it by ticking a checkbox in its settings) and enter the equation:


(function(){
let v = CFFGETCOOKIE('my_cookie');
if(v) getField(fieldname1|n).setVal(v);
})()

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer