Here in my PHP application, I need to allow users to create a registration forms customized for themselves. They will be having the privilege of choosing the number fields, their names as well as there type. The table for the data also will be created dynamically in MySQL.
Now I want to know if there is any library out there which could lessen my work or will I have to do it the harder way?
Thanks.
Yo can try CROOGO dynamics forms a CakePHP CMS.
It is having a very good plugin where admin can customize it's form with validation facility and also relate two fields if required (eg: Password and confirm password should be same.
For core php. You to structure your db by using SAAS model.
refrence:http://stackoverflow.com/questions/5180803/what-kind-of-database-is-used-in-dynamic-form-builder
Related
I want to build a multitenant SaaS application in PHP with Laravel 5.4. I have prepared for almost every module that is required for architecture but now I am struck with Automated Custom Fields Generation.
Like we customize forms in SAP, Oracle eBiz Suit, Sage CRM, Salesforce etc. I want to create a schema like this. So if any user/company requires a custom field or field-set, I don't have to re-write the code. The fields should be added like drag-and-drop feature.
I don't know if this technology has a specific term... But I require some guidance and tutorials on architecture of this module.
Thanks for your help!
You can do it by modifying the database.
Let's assume your original database structure is like this.
Then, you modify the database by adding two tables, one for creating the structure of the custom field, the other for adding the value of the corresponding transaction data.
After that, the image below can be achieved by take into account the relationship between the field of the table. I put the same color for the fields that related to each other.
The rest, I assume you already know how to do it in Laravel.
If you would like to have Laravel drag-and-drop, custom form generator similar to a CRM, wufoo, surveymonkey, google forms, formstack, etc... then I recommend:
Create your Laravel application and add the authentication: php artisan make:auth
Integrate the Form Builder component using a javascript library such as jQuery Form Builder
Create a table for forms that has a foriegn key for user. Store the form layout in JSON as a field in your table.
Create a table for submissions that has a foreign key to the form. Store the form submissions in JSON as a field in your table.
View the laravel package example on Github Laravel Drag and Drop Form Builder
I'm new to Moodle and there is a new project in my office that I want to do.
What I want to do is to create a plugin that helps you create forms. For example, if I want to create a simple register form within Moodle or a simple questions form, the plugin must be able to manage the different type of labels (mail, text, drop-down, select, check, etc.), store the form in a database (form1, form2) and create the table for the respective form.
How should I approach this? Is this possible in Moodle? Or do I just code it in another language and make a generator? Maybe a local plugin?
Thanks in advance.
There is something similar in Moosh although I haven't tried it myself.
http://moosh-online.com/commands/
moosh generate-form form_name
It is possible. There is at least one existing form builder plugin for Moodle that could serve you as a good inspiration source:
repo: https://github.com/WisdmLabs/moodle-local_edwiserform
docs: https://edwiser.org/forms/edwiser-forms-documentation
I want to have in WordPress two kind of registration forms. The default one for let's say visitors users and a custom one for some more privileged users. How can I make the custom one? I especially need the part with the roles, the custom reg form will have another role for the users that will register to it. How can I do that? I think I need something like(it's just a fabulation, don't know the real functions from WordPress)
Example:
//the following variables will be a part of the form that will stand above this function
add_user('$username','$mail','$location','$region','$role');
//where $role can be {1(subscribers),2(contrib.),3(authors),4(editor),5(admin)}
Can I do something like that?
You can use Gravity Forms to create your registration forms with the User Registration add-on and specify custom user meta (including roles.) If you would like to create a custom form without a plugin, you should not attempt to add users directly to the database, instead you should use the wp_create_user function. From the WordPress Codex:
The wp_create_user function allows you to insert a new user into the
WordPress database. It uses the $wpdb class to escape the variable
values, preparing it for insertion into the database. Then the PHP
compact() function is used to create an array with these values. To
create a user with additional parameters, use wp_insert_user().
You can install a webform module in wordpress. Selected an existing form and customize the fields as per your requirement.
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..
I have a Drupal website and I want to add a page in the admin menu with a form that will generate reports, based on the users that answer some enigma, and allow data extraction.
How should I proceed to create the form and make the requests? Should I install a module like CCK to create the form and then use another module for the data extraction (in an excel file)?
Thanks for your help.
Frank
CCK and views can make this easy for you, but doing this, will create answers as content on the site. I'm not sure if this is desired, if it is, you can go ahead. You would be able to create the solution purely be setting up the modules.
If you don't want users answers to be content of the site, but only accessible by admings, you should consider the webform modules, which will allow you to easily create custom forms that users can submit and save the data. I don't think that webform has built in support for views, or data extraction, but this could be accomplished in a custom module.
I have tried to expose tables to views in order to use it to do just this and have created CSV files myself in custom modules. It requires some special knowledge to do this, but once you get that, you can do it pretty quickly. If you have troubles with Drupal and PHP development, this will be a hard task though.
The Views module will allow for creating of reports. It has several plug ins which allow for the data to be downloaded as csv, xls and so on.