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
Related
Unfortunately I can't quite follow how the custom field API works. What I actually want are additional fields for the custom course format such as address, directions and other (hybrid courses). And no, I don't want to use the web interface for this.
As I understand it, two files are needed, myFormatPlugin/classes/customfields/course_handler.php
and
myFormatPlugin/customfield.php
Do I need to register the customfield.php file somewhere or does it work via autoload?
Do I need to create a separate database table for this?
What am I missing?
Could someone make an example for just one field? I don't find the github links in the documentation helpful either.
Hope you want to add some custom fields for your custom course format. To add custom fields for the format plugin you don't want to use the custom field API.
The course format plugin contains options to add your custom fields using the function course_format_options in your course/format/PLUGINNAME/lib.php.
Moodle will automatically store these custom course format options in the database table course_format_options.
Please have look at the designer course format plugin.
https://github.com/bdecentgmbh/moodle-format_designer/blob/master/lib.php#L241
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!
I was wondering if I could i ask the best way forward. I am making a joomla site which will have an advanced registration form. Which I am planning to create with rsform pro. What would be the best method for people to able to search those registered users on the front page .
Any other method that one could or would advice rather than rsform pro like some extension that would ease both the registration and searching as a single component. The search function also needs to be multi optioned. I am trying to take the most informed decision before I start with the coding.
Thank you.
Easy Profile does a great job of this:
https://extensions.joomla.org/extension/easy-profile
See the example at https://www.easy-profile.com/users-list.html for a searchable user list.
You'll need the paid version for custom fields.
I think you can try JoomProfile. Is seems quite useful extension for joomla user profile management. If also has good and fast search http://demo.function90.com/joom-profile/search-in-joom-profile.html
Joomla already has some search components, so the best thing to do is to use it. Actually there is two components that you can use
Search, based on com_search component which do the work on the fly
Advanced search, based on com_finder component which index data and give it back after, it is more efficient and has more functionalities
In both case, you'll have to write a plugin to search user, joomla doesn't have it by default (or you can search some on joomle extensions).
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 want to create a custom form with some fields that i could add/edit/delete on database
how integrate my form with wordpress?
do you know a website ,that have a tutorial about this process ?
thanks
There are plugins that allow you to create custom forms (cformsII), and with some additional PHP knowledge you can retrieve the data using their API. I found this tutorial that quickly goes through installing, configuring and retrieving data from this plugin. That same page also listed some additional forms plugins that are worth looking at.
Another option is to do this using HTML and PHP without the use of a plugin. The following link will give you some insight in how to start and some code that can get you started:
http://www.paulmc.org/whatithink/2009/02/05/using-wordpress-templates-to-create-forms/
Note: There is a plugin called Formidable but only the Pro version allows you to easily retrieve the data from the database.
This is a really involved question, so it shouldn't be asked here.
P.S. Not specific to WordPress but http://teamtutorials.com/web-development-tutorials/php-tutorials/inserting-data-into-a-mysql-database-using-php