check "checkbox is checked" before submit I created a template for a content type. This content type has a field of type radios, with values 0 and 1. 

My requirement is to display a Submit Button if "1" is selected, and then hide when "0" is selected.
All you need are Form API's #states.

function MYMODULE_MYFORM($form, &amp;$form_state) {

  $form['radio_buttons'] = array(
    '#type'   =&gt; 'radios',
    '#options' =&gt; array(0 =&gt; t('Hidden'), 1 =&gt; t('Visible')),
  );
  $form['submit_button'] = array(
    '#type'   =&gt; 'submit',
    '#value'  =&gt; t('Click Here!'),
    '#states' =&gt; array(
      'visible' =&gt; array(
        ':input[name="radio_buttons"]' =&gt; array('value' =&gt; 1),
      ),
    ),
  );

  return $form;
}