• Resolved rosco12345

    (@rosco12345)


    Is is possible to set the value of a drop down on page load through using cookie pre-set variable?’

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Set dropdown value box with a cookie’ is closed to new replies.