I am trying to get my page to display one of two contact forms based on whether a checkbox is “true”

If you are an existing Member, please update your current information by 
clicking the checkbox. <input type="checkbox" id="true_false_box">
<?php if ( get_field( 'true_false_box' ) ==true) ?>
        [contact-form-7 id="9535" title="Contact form 2"]
    <?php else: // field_name returned false ?>
        [contact-form-7 id="1926" title="Contact form 1"]
<?php endif; // end of if field_name logic ?>

Read more here: If Checkbox is True do this / False do that


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: