“I agree to terms” checkbox

493 views
Skip to first unread message

Ondřej Šabrňák

unread,
Aug 12, 2017, 2:42:51 PM8/12/17
to Easy!Appointments - Support Group
Hello, I want add “I agree to terms” checkbox. The customer has to agree, or he will not be able to create Appointment.

Ondřej Šabrňák

unread,
Aug 13, 2017, 8:10:24 AM8/13/17
to Easy!Appointments - Support Group
Update: I added a checkbox, but customer can proceed without ticking the checkbox.  

Code: 
<div class="form-group">                            
    <input type="checkbox" class="required" id="agree" value="checked" />
    <label for="agree"><?php echo $this->lang->line('agree'); ?> *</label>
 </div>


Craig Tucker

unread,
Aug 13, 2017, 11:36:04 AM8/13/17
to Easy!Appointments - Support Group
What you can do is use some Javascript to hide the "next" button unless the box id checked.  You would have to make the next button hidden and if checked the button is shown.  If you google this you will see several different methods to get this done.

Ondřej Šabrňák

unread,
Aug 15, 2017, 7:13:34 AM8/15/17
to Easy!Appointments - Support Group
Update: I added this script and everything work perfectly! 

    $("#button-next-3").hide();
        $("#agree").click(function() {
            if($(this).is(":checked")) {
                $("#button-next-3").show();
            } else {
                $("#button-next-3").hide();
            }
    });

Reza

unread,
Jun 23, 2018, 5:17:12 AM6/23/18
to Easy!Appointments - Support Group
Where did you add this script?

Craig Tucker

unread,
Jun 25, 2018, 1:19:27 AM6/25/18
to Easy!Appointments - Support Group
Ondřej would have put the script in  /assets/js/frontend_book.js

The script would be linked to the HTML he is using in /application/views/appointments/book.php

Ondřej does not show the HTML he is using in the view but from his Java Script it looks like he has a simple check box that is linked to some text  that they agree to.

Alex Tselegidis

unread,
Jun 25, 2018, 2:30:59 AM6/25/18
to Easy!Appointments - Support Group
Hello everyone! 

I'd like to inform you that the latest Beta 1.3.2, supports legal text integration and cookie notices by default. 

You can setup your text in the backend settings page and display the "Agreement" checkboxes in the booking page. 

You'll find the package here: 




  Alex Tselegidis, Easy!Appointments Creator

  Need a customization? Contact me in person!

Reza

unread,
Jun 26, 2018, 12:05:56 PM6/26/18
to Easy!Appointments - Support Group
Thanks Alex,
since may 25th we have to put the accept to agreement checkbox on our sites all over Europe because of the General Data Protection Regulation GDPR
Reply all
Reply to author
Forward
0 new messages