Joomla Tutorials and Blog Posts

An Introduction to Fabrik

fabrikThere are nearly 30 options for creating Joomla forms. Fabrik is probably the most powerful of them all.

Rather than simply create forms, Fabrik allows you to create real applications. You can collect data and then feed that data into charts, maps, calendars and more.

However, although Fabrik is powerful and flexible, it can also be complicated to use. In this tutorial, we're going to give you a gentle introduction to Fabrik, and we'll show you how to set up your first form.

1. Install Fabrik

tutuploadsmedia_1335291815971_a617b27ec3c46072b26e25991007458a.png

2. Start Creating the Form

  • Click on Components > Fabrik > Forms > New to begin your first form.
tutuploadsmedia_1335292310038.png
  • Enter a Label. This will be the name for your form.
  • Set Status to Yes.
tutuploadsmedia_1335292523663.png

 

  • Scroll down to the Form processing area.
  • Enter a table name. This is where your form entries will be stored in the database. It is best to use only lowercase letters and underscores to create this name.
  • Make sure that Save partially completed multi-page forms is set to No.
tutuploadsmedia_1335292686204.png
  • Click on Save and Close. You have created your form and database table.

3. Add Elements to the Form

tutuploadsmedia_1335293028886.png

Now that you have the form, we need to add elements. Elements are the actual data that people will enter into your form. These will be things such as name, email address and phone number.

  • To add new elements to your form, click on Elements > New.
  • Fill in the Name. No-one will see this. This will be the column heading in your database table. It is important to keep your naming convention consistent for future implementation of code. Keep your Name all lowercase.
  • Fill in the Label. This is what people will actually see when they fill in the form.
tutuploadsmedia_1335293240411.png
  • Choose the Group. This is the name of the form you just created.
  • Choose the Plug-in. This decides what type of data you'd like to collect. For your "First Name" element, you will want a "Field" plugin, which allows users to type in a textbox.
tutuploadsmedia_1335293401942.png
  • Set Show in list to Yes. This will make the element show on your form.
tutuploadsmedia_1335293562518.png

 

  • Click Save and Close
  • Repeat the steps above to make all the elements you need for the form. A good example would be to create a "last_name" field element also.

4. Link Your Form to a Menu

  • Go to your Menu Manager, click on your Menu, Add new Menu Item.
  • Click Select next to Menu Item Type.
  • Scroll down and click on Form under the fabrik heading.
  • Choose your Form on the right-hand side.
  • Enter the Menu Title.
  • Click Save & Close.
tutuploadsmedia_1335294011626.png

 

5. View Your Form

Congratulations. You have created a form with Fabrik.

If you want to see the information entered in the form, go to Components > Fabrik > Forms and click View data next to your form.

tutuploadsmedia_1335294107294.png

 

Comments

 
CorinneSchn
#1 CorinneSchn 2012-06-12 21:33

I found this tutorial very helpful....than k you! I love your site... it has everything you need and more to help you along with your Joomla website. I am so excited to have see your "free 7 day week trial" because this gives me a chance to show and give my boss the thumbs up so he will purchase a 12 month membership. THANK YOU OSTRAINING you rock!
 
 
steve
#2 steve 2012-06-12 23:53

Thanks and welcome, Corrine.

We're really glad you found this tutorial and our site useful. Welcome to OSTraining!
 
 
tessa
#3 tessa 2012-07-13 03:27

Thank you Corinne. It makes us very happy to hear wonderful comments such as yours. :-)
 
 
chrisconnelly
#4 chrisconnelly 2012-07-29 15:31

i have done this and have a site full of records in fact there are thousands but how do i find a specific record or search the database
 
 
NUWAMANYA Dann
#5 NUWAMANYA Dann 2012-08-04 11:55

Thank you so much. This tutorial was very very helpful and easy to follow
 
 
Nathan
#6 Nathan 2012-08-05 16:40

@chrisconnely

Go to the 'List' tab on the Fabrik administrative page. You should see a Fabrik List with the same name as the form you created. Add a menu link to this list, the same way you added a link to the form (except choose list instead of form for the menu type). Now, go to the 'Elements' tab on the Fabrik Administrative page. For each field/column that you want to use as a search filter on your table do the following: (1) open the element's setting page (2) Open the 'List View Settings' tab (3) Click 'Filter's to open that part of the accordion view (4) Choose the appropriate option from 'Filter Type', and click 'Save'. Now, go the front-end of your joomla site and click the menu link you created for the Fabrik List. You should see the records for that list currently in the database, and above the table you will see the search/filterin g fields or dropdowns that you added for each element.

Hope this helps!
 
 
Roee
#7 Roee 2012-11-05 15:50

Hi,
I'm trying to create a form with bindDed fields, so when i set the value of the first field, this value is used as a filter for the second field's query (both are typed databasejoin).
some thing like this (in the second field SQL statement : WHERE TABLE2.SOME_ID == TABLE1.SOME_ID.

Any ideas?

Thanks,
Roee
 
 
aku
#8 aku 2013-01-06 15:10

Hi guys, wonderful tutorial!

Just one thing, how do I send out an email to the user and admin, using the info the user entered in the form?

Any help will be greatly appreciated!

Thanks!
 
 
Shweta
#9 Shweta 2013-01-28 06:56

Hello. I am a beginner to use Joomla 2.5. I am using Fabrik 3. I want to do CSV export of data of table I created, using form. It gives me "0 records found saving to". Please can you help me.
 
 
Wampamba
#10 Wampamba 2013-02-06 11:23

Is there a clear tutorial about using paypal plugin and ipn with fabrik?

Otherwise thank you very much the above tutorial, it is precise and easy to understand.
Thank you so much indeed
 
 
JJ
#11 JJ 2013-04-26 00:03

Very straightforward and informative post. Unfortunately, I have followed these instructions exactly and for some reason the form I create will not display. I have a number of elements in the form, and they just won't display even after following these instructions perfectly. Any ideas? Please help :-)
 
 
nikiniki
#12 nikiniki 2013-05-08 18:13

Thanks a lot!!!! :-)
 

Add comment


Security code
Refresh

blog-ad

Start Online Training

Members get access to all our video training. That's 1,141 training sessions in Joomla, Drupal, WordPress and Coding.

Manage All Your Joomla Sites

adminicredible

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.

Latest Comments

The License for Our Tutorials

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:

  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.

Click here to read the full license.

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.