Custom form fields

1,154 views
Skip to first unread message

Wiscom J

unread,
Jan 5, 2016, 1:39:43 PM1/5/16
to Easy!Appointments - Support Group
Good evening everyone!

I would really like to have an option to add custom form fields for new customers when they make a new appointment(Have a look at the enclosed jpg) I don't know if there is a fairly easy way to do this right now(I'm not a programmer but I can read the code and can get far enough if I could get directions).

Thanks in advance!
feature-request.jpg

Alex Tselegidis

unread,
Jan 5, 2016, 4:40:20 PM1/5/16
to Easy!Appointments - Support Group
Hello 

There is no direct way to achieve what you want rigth now. But since you are a developer you will be able to modify the files as required with reasonable amount of work. By that I mean that I have made a great effort keeping the code documented and as clean as possible.  

So, first of all E!A is based in CodeIgniter v2 so you will have to read the documentation before messing with any files. You will also need to check the current file structure so that you can easily find the files you seek. 

First modify the ea_users table of the database and add the fields you need. Then modify the /application/controllers/appointments.php controller as needed. You will also need to display the data in booking form so modify the /application/views/appointments.php. Finally update the frontend_book.js so that your data are collected from the booking form as done with the rest of the fields. 

The backend page works in a similar way. Unfortunately there is no quick way to do this without getting your hands dirty :P 

Best Regards, 

Alex

Wiscom J

unread,
Jan 5, 2016, 5:38:31 PM1/5/16
to Easy!Appointments - Support Group
Hello Alex,

Thank you for the great response, I will have a look at the CodeIgniter documentation and from there I will try to make my own custom fields in the way you have described. I will keep you updated :).

Best regards,

Jeff
Message has been deleted
Message has been deleted

Manuel Silva Gallego

unread,
Jan 24, 2017, 6:03:38 AM1/24/17
to Easy!Appointments - Support Group
Hey Jeff,

I am trying to achieve the same thing as you. In my use case, I simply want to remove certain fields which I don't need, like phone number, and add new ones (like patient national ID). Did you manage to make this work? I have been looking at the code at it seems to me that I need to modify Customers_model.php as well besides the files mentioned already. It would be nice to get a better idea about what needs to be done... Thanks in advance
Reply all
Reply to author
Forward
0 new messages