1. Hugh (cheesegrits) here. Thank you for all the good wishes. My back surgery was a success, post-op recovery is going well, and I'm getting stronger and feeling better every day. I hope to be getting back in the saddle and working support again over the next few days.
  2. IMPORTANT NOTE - we have made some changes in our github branch naming. The 'master' branch no longer exists, and is now called 'joomla25' (which is Fabrik 3.0). The 'joomla3' branch (which is Fabrik 3.2) remains unchanged. We have also removed all the other testing branches which had accuulated over the last few years. I have posted a thread in the Community forum for 3.0 with some more information, feel free to as questions there.

JS check if checkbox is checked?

Discussion in 'Fabrik 3.x Testing' started by adamck, Apr 13, 2012.

  1. adamck New Member

    Level: Community
    Hi Guys.
    What js is needed to check that a checkbox is checked when submitting a form?
    I need an alert if its not checked and for the form to submit correctly when it is checked.
    Thanks
  2. adamck New Member

    Level: Community
    OK so im doing this JS
    Code (text):

    if ($('newusers___Terms').checked == true) {
    document.getElement('.fabrikActions').show();
    }
    else{
    document.getElement('.fabrikActions').hide();}
     
    Which works by hiding the submit button when the box is unchecked.
    But when its checked again it doesnt show the submit button.
    Why??
  3. rob Administrator

    Level: Community

Share This Page