"I Agree to Terms & Conditions" tick box before purchase???

3 replies
Hi There,

I would really love it if someone could solve this problem for me.

I need a button like this:



So that the buy button (that sends people through to paypal) is only active on the condition that this box is ticked.

Also, if at all possible, if they click the buy button without ticking the box a little window comes up telling them that they need to agree to our terms.

Thanks in advance to anyone who can help

Pete

PS. If you can do this but it is a lot of work please feel free to PM with a price for the job. However, it would need to be finished quickly. Many thanks
#agree #box #purchase #terms #tick
  • Profile picture of the author eminc
    Hi,

    Its simple. The code.

    The reference: The first website when you google "checkbox onclick submit button". You will find explaination there. Sorry I can't post links here

    <form name="theForm" action="#" method="post">
    <input type="checkbox" name="theCheck" value=""
    onclick="theChecker()" >I agree to the terms of
    use.
    <input type="submit" name="theButton"
    value="Download">
    </form>
    <script type="text/javascript">
    document.theForm.theButton.disabled=true;
    function theChecker()
    {
    if(document.theForm.theCheck.checked==false)
    {
    document.theForm.theButton.disabled=true;
    }
    else
    {
    document.theForm.theButton.disabled=false;
    }
    }
    </script>

    Mohit
    {{ DiscussionBoard.errors[4905770].message }}
  • Profile picture of the author eminc
    Hey Peter,

    Got your private message. Unfortunately I can't PM you back due to less post count. Posted a message to you on your FB Profile as its the only thing I can find here to contact you

    Mohit
    {{ DiscussionBoard.errors[4906490].message }}
  • Profile picture of the author DavidWincent
    It is pretty simple. You just need to type a simple code that is given below.

    <form name="theForm" action="#" method="post">
    <input type="checkbox" name="theCheck" value=""
    onclick="theChecker()" >I agree to the terms of
    use.
    <input type="submit" name="theButton"
    value="Download">
    </form>
    <script type="text/javascript">
    document.theForm.theButton.disabled=true;
    function theChecker()
    {
    if(document.theForm.theCheck.checked==false)
    {
    document.theForm.theButton.disabled=true;
    }
    else
    {
    document.theForm.theButton.disabled=false;
    }
    }
    </script>
    Signature
    Webmaster Studio -A premier web design and internet marketing company in New York.
    {{ DiscussionBoard.errors[4909671].message }}

Trending Topics