Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Unfortunately no.

    Thread Starter Neo_dev

    (@neo_dev)

    I tried with a script:

    <p id=”demo”></p>
    <script>
    // <![CDATA[
    var x = ‘[cfdb-value form=”Form1″ filter=”Field2_Form1=Value”][/cfdb-value]’;
    var y = ‘[cfdb-value?form=”Form2″ filter=”Field2_Form2=’ + x ‘”][/cfdb-value]’; document.getElementById(“demo”).innerHTML = “Theme: ” + y;
    // ]]>
    </script>

    I get the value for x but nothing for y. Is there a way to put a variable as a value in the shortcode?

    Plugin Author Michael Simpson

    (@msimpson)

    Filter variable substitution. Also works for putting variables in most other short code attributes.

    Thread Starter Neo_dev

    (@neo_dev)

    Thank you Michael!
    Last question, is it possible to put the current page title as a filter variable?

    Something like:
    filter=”Field1=current_page_title”

    Thanks.

    Plugin Author Michael Simpson

    (@msimpson)

    Not that I can think of.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter with field value from another form’ is closed to new replies.