Created
February 2, 2018 20:00
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.