Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KustomDeveloper/a2775eeaa290a795249cb797885f1d65 to your computer and use it in GitHub Desktop.
Save KustomDeveloper/a2775eeaa290a795249cb797885f1d65 to your computer and use it in GitHub Desktop.
Clickfunnels - Add terms of service box on landing page. Won't show submit button until checked
//Put in your button id and add this to a custom html/js object on your page
<div class="checkbox">
<label><span id="clicker"><input type="checkbox" name="custom_type" data-custom-type="agree" value="agree_tc"></span> I have read and agree to the terms and conditions of this website</label>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('#clicker').click(function() {
$('#your_button_id').toggle();
})
});
</script>
@doodz2
Copy link

doodz2 commented Jan 20, 2022

Hey man, can I ask how this code works? been trying to setup but I am having difficulties on it. I'm not a familiar with codes, I just want to this for my order page. Thanks

@doodz2
Copy link

doodz2 commented Jan 20, 2022

image
I have embedded the code using a custom html element right below the button, but the thing is that button is still visible even unchecked. Thanks, it would be a great help

@doodz2
Copy link

doodz2 commented Jan 20, 2022

@Kustomdesigner

@KustomDeveloper
Copy link
Author

@doodz2 It is very simple. It hides the form submit button until the terms of service checkbox is clicked. You must have the css of the button set to: display: none for it to work. Then the .toggle() function will toggle will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment