Support » Plugin: Smart Forms - when you need more than just a contact form » Check existence of checkbox

  • I have a multi-part form that contains a checkbox that when checked shows another section of fields. When I get to the next screen I need to determine if the checkbox was checked so that I can use a conditional calculation. I tried

    if(document.getElementById('addchild2').checked) {
        //do something }

    but it returns as undefined. Is there a way to test for the condition of the checkbox?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Check existence of checkbox’ is closed to new replies.