for a customer I am trying to add a booking option to book for your child, but only selectable from a list of your entered children. I wanted to use the custom fields but they only allow a fixed list of options. So I added a wordpress filter to the_content so I could grab the page before it goes to the client and insert the select options for each child entered into the DB for that user, but the form fields do not have ids for the document elements and I am not sure how I can do this now. Any suggestions?
under the Amelia->Customize tab you have the option to add a custom field:
I chose a select box.
The problem is the options in the select box are fixed. Instead of showing "SomeChildren" and "None" I want to show a list of their children's names which they have entered in their profile, so that they can register an appointment themselves or for one of their children. So it will be a different list depending on which children they have entered on their profile.
It seems this functionality does not exist in Amelia, so I was trying to hack a solution myself. I was trying to catch the output of the Amelia booking plugin by using the wordpress filter the_content. Then I was trying to use javascript to change the options in the list. It would be fairly easy if I could use document.getElementById() function, but the elements do not have an id defined in the HTML, only a class. I am still trying to find a way to make it work using such a hack but haven't managed yet.
A selectbox is something you offer as a choice to your customers, so it's predefined by you, and it can't pull the value a customer entered previously. Firstly, custom field entries are linked to the appointment, not the customer, and secondly - this is not how the custom fields are intended to work.
JS files are modified (minimized) in public version of plugin (in our development environment is accessible), but unfortunately I can not send you our source code because that is the policy of our company.
All those files that have extension .vue are compressed and minimized in JS files that is very hard and not recommended modifying. So in order to add some other features you can unminify the js and customize it.
If you have any more questions please feel free to open another ticket.
Hello,
for a customer I am trying to add a booking option to book for your child, but only selectable from a list of your entered children. I wanted to use the custom fields but they only allow a fixed list of options. So I added a wordpress filter to the_content so I could grab the page before it goes to the client and insert the select options for each child entered into the DB for that user, but the form fields do not have ids for the document elements and I am not sure how I can do this now. Any suggestions?
Thanks,
Matthew
Hello Matthew,
Thank you for purchasing our product, and for reaching out to us.
I'm afraid that we didn't quite get what do you want to achieve.
Can you please send us a couple of screenshots or write to us a couple of examples of what do you mean exactly?
Looking forward to your reply.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Marko,
under the Amelia->Customize tab you have the option to add a custom field:
I chose a select box.
The problem is the options in the select box are fixed. Instead of showing "SomeChildren" and "None" I want to show a list of their children's names which they have entered in their profile, so that they can register an appointment themselves or for one of their children. So it will be a different list depending on which children they have entered on their profile.
It seems this functionality does not exist in Amelia, so I was trying to hack a solution myself. I was trying to catch the output of the Amelia booking plugin by using the wordpress filter the_content. Then I was trying to use javascript to change the options in the list. It would be fairly easy if I could use document.getElementById() function, but the elements do not have an id defined in the HTML, only a class. I am still trying to find a way to make it work using such a hack but haven't managed yet.
Hello Matthew,
Currently, there is no such feature built-in.
A selectbox is something you offer as a choice to your customers, so it's predefined by you, and it can't pull the value a customer entered previously. Firstly, custom field entries are linked to the appointment, not the customer, and secondly - this is not how the custom fields are intended to work.
JS files are modified (minimized) in public version of plugin (in our development environment is accessible), but unfortunately I can not send you our source code because that is the policy of our company.
All those files that have extension .vue are compressed and minimized in JS files that is very hard and not recommended modifying. So in order to add some other features you can unminify the js and customize it.
If you have any more questions please feel free to open another ticket.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables