Remove email and telephone mandatory fileds

1,129 views
Skip to first unread message

Gianluca

unread,
Mar 14, 2017, 3:19:15 AM3/14/17
to Easy!Appointments - Support Group
Hi Alexis, Hi everyone,
I'm trying to use your application (GREAT!) for my brother who is starting a little studio for physiotherapist.
He doesn't want people book appointments, he just wants to input himself and use only the backend part.
It will be great to remove the mandatory fields for email and telephone number because a lot of older people do not have email e maybe also the telephone.
Do you think there is a fast way to change these fields to non mandatory ?
Thanks in advance and sorry for my english :)

Have a nice day! 

Craig Tucker

unread,
Mar 16, 2017, 11:42:01 AM3/16/17
to Easy!Appointments - Support Group
Go to the appointments view file and remove the tags for those fields.  Or remove the "required" from the tag.  Look in application/views/appointments/book.php and find the tags there.

Gianluca

unread,
Mar 16, 2017, 11:44:29 AM3/16/17
to Easy!Appointments - Support Group
Hi Craig, many thanks! Tnoite I'm going to check it and I will give you a feedback asap ! Have a nice day !

Gianluca

unread,
Mar 16, 2017, 1:31:33 PM3/16/17
to Easy!Appointments - Support Group
Hi Craig,
I've modified this way (book.php) removing the tag "required":

<div class="form-group">
                                    <label for="email" class="control-label"><?php echo $this->lang->line('email'); ?> *</label>
                                    <input type="text" id="email" class="form-control" maxlength="250" />
                                </div>
                                <div class="form-group">
                                    <label for="phone-number" class="control-label"><?php echo $this->lang->line('phone_number'); ?> *</label>
                                    <input type="text" id="phone-number" class="form-control" maxlength="60" />
                                </div>

I've made this also on settings.php but it doesn't work unfortunately... Have any more ideas ?  Hanx!

Gianluca

unread,
Mar 16, 2017, 2:19:00 PM3/16/17
to Easy!Appointments - Support Group
customer_model.php ???

Gianluca

unread,
Mar 16, 2017, 2:19:37 PM3/16/17
to Easy!Appointments - Support Group
app/application/models/Customers_model.php

Gianluca

unread,
Mar 16, 2017, 2:20:22 PM3/16/17
to Easy!Appointments - Support Group
I've tried to edit app/application/models/Customers_model.php but everything breaks ...:(

Alex Tselegidis

unread,
Mar 16, 2017, 5:39:47 PM3/16/17
to Easy!Appointments - Support Group
Hello Gianluca, unfortunately email cannot be an optional field as it's the only evidence that a user is unique. By using the email the app can aggregate appointment information for each customer and help admins handle their own customer info.  

There is a "quick & dirty" workaround though which can be applied in order to remove these fields from the mandatory list: 

1. Remove the "required" attributes from the view files
2. Set empty email values to "empty-{timestamp}@example.org" in appointments and backend controller callbacks (this way models will continue working without issues). 
3. Adjust email validation in JS files so that they also accept empty emails.

I hope I haven't forgot any step but post in this thread if something else breaks :) 



  Alex Tselegidis, Easy!Appointments Creator

  Need a customization? Contact me in person!

Gianluca

unread,
Mar 17, 2017, 7:23:31 AM3/17/17
to Easy!Appointments - Support Group
Many Thanks Alex, I'll try it out during this week end and I'll give you a feedback about.

Gianluca

unread,
Mar 17, 2017, 10:05:51 AM3/17/17
to Easy!Appointments - Support Group
Hi, but empty-{timestamp} is to be defined at mysql level ? Thanks!

Alex Tselegidis

unread,
Mar 18, 2017, 8:57:51 AM3/18/17
to Easy!Appointments - Support Group
I would add this logic in PHP-level as its easier (time function).

Gianluca

unread,
Apr 12, 2017, 3:05:15 AM4/12/17
to Easy!Appointments - Support Group
Hi Alexis,
I've tried everywhere but I cannot find out where is the file to edit.
When you click oon the new appointment button in the main view, the new appointment form that shows up should be the appointment_details.php in application/views/email but if I try to insert some html to verify it is the right file, no changes are shown... If you could, just provide me some more hints :) on where ti put the default email timestamp ... Many Thanks !!!

cad 9

unread,
Nov 10, 2017, 4:54:14 AM11/10/17
to Easy!Appointments - Support Group
Hi Alex, I have asked this question also, but on Google+ It seems that it could be an issue for some clients if their customers are elderly, they don't always have email addresses :(
Would it not be better for the system to generate a unique customer number when a customer is created and allow the software to order/process the customers using this unique number rather than an email?

Just a thought.

Thanks

Steve

Alex Tselegidis

unread,
Nov 22, 2017, 3:26:26 AM11/22/17
to Easy!Appointments - Support Group
Hi Steve, 

that could be a solution of course but then we will not be able to detect customers with this number cause they will not enter it in the booking page. 


Regards,

Alex
Reply all
Reply to author
Forward
0 new messages