terms and conditions pop up...

  • Profile Image
    ynew
    Asked on March 12, 2018 at 11:05 AM

    For my form, I'd like to add a terms and conditions pop up.  Additionally, I need a 'I agree' checkbox.  I'm good with the checkbox, but only want it to be enabled if the popup has been seen.  Can I do this?

  • Profile Image
    onurc
    Answered on March 12, 2018 at 11:41 AM

    Hi,

    In order to add this custom usage, you need to integrate some custom Javascript codes with your fully embed form.

    For example,

    Lets assume that you have a disabled checkbox into your form as following,

    <input id="terms-of-conditions" type="checkbox" disabled /> I Agree

    And also you need to have a button which is going to display "Terms of Conditions" and this button is going to have an onclick attribute which is responsible to make enable I Agree checkbox as following,

    <input type="button" onclick="javascript:enableIAgree();" value="Terms & Conditions" />

    And you need to add a Javascript code block which is dealing with enabling your checkbox which will be called via button onclick attribute (function: enableIAggree)

    <script type="text/javascript">
    function enableIAgree(){
    document.getElementById("terms-of-conditions").removeAttribute("disabled");
    }
    </script>


    I hope this is going to help you to make an integration into your form.

    If you have any question or comment, please let us know.

    Kind regards!