I've created a Website with Elementor and Toolset for a client a few years ago. However, I want to recreate the Website with Gutenberg/Zion Builder and maybe Metabox.
My client offers events (mostly on weekend) for Christians.
However, the current Website of my client has some special characteristics in regards for the events.
There are two CPT's for the staff of my client. One CPT contains custom fields (radio buttons) for Yes and No answers. This CPT is reponsible for creating the Frontend Form. Here is an example:
There are different kind of events. The client has some events with music instruments. So for these events, there a special fields that appear in the form, like which instrument does the guest have and so on. Another events are only for children and have to have fields especially for children. So every form has to meet different requirements for different kind of events. In some events, some fields have to appear in the frontend form, in other events, they don't.
- Is it possible to create Frontend Forms based on whether the staff members clicked yes or no for specific events with MB? So that the Form only has the fields, which are needed for the specific events? In Toolset you set conditional logic for this.
Another thing: For each event, for which a customer registers, the form has custom code which calculates the age of the registered person. The reason is, that that the age of a person determined how much the customer has to pay for the event. The age has to be calculated based on the Event date, so how old this person is on the day the event starts.
Is it possible, to calculate the age based on the event start date with MB? The current form has a field, where the user has to put in his birthdate in dd.mm.YYYY.
The last thing: The current Website has a table which shows all events for the year. In the last column it displays a small circle in green, yellow or red. The staff is chossing in the backend, which color has to be displayed in the table for each event. Red stands for booked out events, yellow for almost booked out and green that the event has enough free seats.
Is this also possible with MB?
Thank you for reaching out. Let me answer your questions.
Yes, it is possible. You can use the extension MB Conditional Logic to show/hide some fields based on a select field. It will work in both frontend and backend. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/
Same as #2. You need to create your custom code to create a table that shows all events and field value (red, green, yellow) on the frontend.