Display a dynamic dropdown from custom PHP code inside Elementor Form in WordPress - php

I need some help and advice in the design of a Event registration form with Wordpress plugin Elementor Pro and ACF Pro. If these are not suitable, you can recommend any other plugin.
The users may send any number (from 1 to 10+) of delegates to our company event.
How can I collect the company information once, but then repeat the delegate name, age, telephone, email etc. fields to show X number of times (depending on how many delegates they want to register).
Ideally, it would be best if we could ask (Do you have any more people to register?). IF yes, then ask all the input fields for a delegate. If not, then get the form submitted and end.
Further, I want to load the name of the event from a SQL database, and use custom PHP to load the select list dropdown in the same form. Elementor does not seem to be able to do this. Again, once the event is selected, we will want to load the dates for that particular event from the database, via another dropdown/select function that would come from another PHP code.
Is there a way to use Elementor Pro & ACF PRo to create such a form. I need to have repeatable sections, logic, and also allows for custom php logic/functions to be created to populate select lists, and be able to cascade the dropdowns from the earlier choices, conditionally.
Any help or suggestions are really appreciated. If there is any other Wordpress plugin that can do this, do recommend. Thanks.

Well, using Dynamic.ooo is a good idea in sense of having Logical forms. But i am not sure if it can save the form in db...but i am sure that you can set it so that the forms are sent to your selected email. I myself have found this plugin amazingly handy, give it a try!

Related

Wordpress ask user's their desired role as a dropdown menu while registration

I want to add a custom field to the Wordpress registration form without using any plugins. I want to add a dropdown menu with user-roles ( some roles I have created). Once the registration is complete the user should not have the ability to change their roles ( only admin can do that, selecting role as admin should not be allowed).
Any help will be appreciated.
I understand that you do not intend to use plugins, but you nevertheless use a theme, be it implemented by your team or some widely available theme. In any case, that theme has an implementation for your registration, so:
Find the registration form
Make sure that you find out where the registration form is.
Add a field to the form
Be it in a CMS editor or in a PHP/HTML file you must be able to edit it and add a field
Find the code which runs when a registration is posted
Again, you need to seek and find.
Enhance your functionalities which save fields
You will need to track and save the posted value
Change the database schema
You will need to do some changes on the MySQL schema in order to support the new field on database-level.

Gravity Forms - Drop Down based of entries from Database

I am new to WordPress and I work with the plugin Gravityforms.
I would like to know how to retrieve the data from a table in my database in a Dropdown, so that when I open my page there is a Dropdown field whose data comes from my database.
If anyone has an idea of how I can go about it, or write the code etc. It would be really helpful.
Thanks in advance.
Gravity Forms has a great example of how to populate Drop Down fields dynamically via hooks in the link below. In your case, you would need to fetch your entries via the GFAPI::get_entries() method rather than WordPress' get_posts() function.
https://docs.gravityforms.com/dynamically-populating-drop-down-fields/
If you don't feel comfortable customizing the code examples, Gravity Forms Populate Anything provides point-and-click UI for populating any choice-based fields (including Drop Downs) and support for filtering which entries get populated.
https://gravitywiz.com/documentation/gravity-forms-populate-anything/

Kanboard Custom Fields

Customization work regarding Kanboard
I need to add custom fields to the create new task form. Can this be achieved using Metadata Manager plugin?
Will I need to hire a developer to get this done?
Currently there's only Title, Description & Tags available. I Just need to add three more fields to show in the task box in Kanban view.
Thanks!
No, the Metadata plugin will not achieve that. There is a plugin that will allow you to create custom fields that will be included on the create task form, but since you didn't ask, I cannot tell you which plugin (I tried already, and it was downvoted and deleted because it didn't answer your question apparently)
No, you will not need to hire a developer to get this done, assuming you can find the plugin I am referring to.
With said plugin, you will be able to add as many custom fields as you wish, as well as, including them in task exports, filtering, change their type, etc...
Good luck in your search!

Is it possible for a Joomla Form plugin to create a table and save form data to that table?

I am working on creating a Joomla based web service that is easy to use. The end goal is to allow customers the ability to manage the site from the front-end with no back-end (administrator) access. To accomplish this task I am using K2 that has existing front-end editing. Then behind the scenes we will provide technical support. Essentially, non-techy customers can easily manage their site, with us managing the tech side of things.
I need to provide a few forms (Contact, Event registration/payment and Donation payment). These forms also require that certain aspects of the forms can be updated via the front-end leveraging K2. (eg. The email address to send form submissions to.) With most forms components this can be done easily from the admin panel, however this is too complicated for non-techy customers and means we would have to provide admin access instead of just front-end. Not a good solution.
I have created a K2 contact Form plugin that will allow a customer to update where the email is sent on submission, when logged into the front-end with correct permissions. So far so good. I chose a plugin to accomplish this so we could leverage the existing front-end editing.
The issue I ran into is how to make my plugin create a table, preferably on install, as well as save form data to that table on successful submission. I'm not sure that this is possible using a plugin and have not found any documentation or sources mentioning how to accomplish this task.
I was hoping someone may be able to confirm either way if this is possible? Any suggestions, comments, etc would be greatly appreciated.
While installing plugin you can create DB tables, Its not a big deal create the SQL file with proper table query and set that inside your XML file.
Also you can create a forms(with many fields) inside your plugin file, But the problem is you should have any components controller and model related to this form submission task. Bcoz form submission you cannot handle inside plugin file, it should required a controller and model files.
So basically your plugin have related components then you can achieve it with form action like below.
<form action="index.php?option=com_yourcomponent&task=your_controller.your_function">
For creating DB table while installing plugin check this link
Hope its helps..

Drupal 6 Layout issue

i have recently started to learn drupal 6. I dont have any previous experience with drupal.
I was asked to implement a page on existing drupal site with the following structure.
a sopping page which will have an thumbail size image with lable and a quantity text box. This pattern will repeat for 10 products. At the end of the page i should have a submit button which results in sending an email with product and quantity to dedicated email address.
If its just a form then i can use webform but the requirement is having an image for every product.
I am not sure how to implementn this...can someone guide me in the right direction please.
This is what i am trying to achieve(http://dontikurthi.com/sample.html)
thanks for the help in advance.
Cheers
R
For the image handling, I suggest ImageCache. If this is going to be a shop, use Ubercart. It's an extremely powerfull shop system with lots of functions and extensions.
It's hard to recommend a single way since Drupal offers many ways of doing it. I would go with CCK (let's you create your own content types with as many fields as you want) and/or Views (pulls data from many different areas of the database into viewable form, highly customizeable and on of the first modules to install together with CCK). Create a new content type with the help of CCK and create a view that displays this particular content type in a fashionable manner. That should get you pretty close to the image above.
When creating a form with webform, you add form components, and you can add "markup" type component: it describes itself as "Markup allows you to enter custom HTML or PHP logic into your form."
So, to add a picture above or below a form item, just add a markup and put the appropriate HTML in it.
eg <img src="http://localhost/picture.jpg " />

Categories