Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sul926

    (@sul926)

    Thank you Ben!

    Passing and testing against $form_id into the function didn’t work for me. I was able to resolve using is_single() or is_page() function. I ended up using is_page() since our form is part of an accordion on a page. Of course, if you have multiple forms on one page, the code will apply to all forms at the same time. Not sure how to control this.

    This seems to work for my scenario:

    function conditional_ffm_display() {
    	if ( is_page(<page id #>) ) {
    ?>
    <script>
    ...
    </script>
    <?php }
    }
    

    Thank you!

    -sul.

Viewing 1 replies (of 1 total)