Zoho

Creating online data forms with no coding at all

by Ali. 0 Comments

Many times you need to collect information from users (e.g. employees) through online forms.

As I just did for my HR department as a favor, you too can do it very quick (but not dirty) in Zoho Creator.

I assume that you have a basic understanding of Zoho Creator and databases in general. If not you can have a look at the Wiki site, or more generously check out the respective chapter in my book Foundation Zoho: Work and Create Online, out September 2009.

Creator allows you to quickly setup a database by designing the data forms, and then embed the forms in any web page. It means that you skip many steps (compared to when you do such task in a traditional way of coding everything yourself) and let Creator to take of it. You might realize the skipped steps in this tutorial, and well, if you didn’t, don’t bother.

Now, let’s create a database application that holds the data of a survey you run on your website.

Getting started

First you need to create the application itself. Then we continue with adding the necessary forms.

  1. Open Creator (http://creator.zoho.com) and log in with your Zoho credentials. Create an account if you don’t have one yet.
  2. If it is your first time it will automatically open the application wizard (figure 1) where you create the application. Enter webForms in the Application Name and survey in the Form Name.

    Zoho application wizard

    figure 1. Creating the application.

  3. In the form designer (figure 2) you can create a full-fledged data entry form with standard elements, coding, and validation. This tutorial will just use the design features, so start with dragging a Radio button from the field-box (left) and dropping it on the form just like in figure 3.
    Zoho Creator form designer
    figure 2. The form designer.

    Dragging a radio-button
    figure 3. Dragging a radio button.

  4. Fill in the values in the Adding Radio dialog box as you see in the figure 4. Then click done when you are finished. These elements will determine the design and basic behavior of the radio button.Setting the field values
    figure 4. Setting the values for the radio button.

  5. Check the result of the previous steps on the form. You can see a radio button set with 3 options to select and a label in the form of a question. The first element of your form is built and we are going to perform similar tasks for the rest of the elements.
  6. Now add a Checkbox to the form: drag it from the field-box and drop it on the form below the radio button.
  7. Fill in the values for the check-box as in figure 5. Then click done.
    Setting values for the check-box
    figure 5. Setting the values for the check-box.
  8. Drag and drop a Multiline and fill in the values as you see in the figure 6.
    Setting values for the multiline text
    figure 6. Setting the values for the multi-line.
  9. For the last field, drag and drop an Email and set it just like figure 7.
    Setting values for the email field
    figure 7. Setting the values for the email.
  10. Check the final form and compare it to figure 8. They should look almost identical.
    Final design
    figure 8. Reviewing the final design.

Well,  you have just created your very first form. It’s now time to run it and test how it works. Then you will embed it in your website for the prime time.

Getting the embed code

To refresh your memory let me mention that to place the form in your website in order to gather information from the visitors, you need to embed the survey form in a web page of your website. Although you won’t write a single line of code, it is always beneficiary to be a bit familiar with HTML, maybe to that extent that you know every web page is made of HTML code. So all you will do is to get a piece of HTML code (snippet) and paste it in the right position in the source code of the target web page.

Before that, you need to run the Creator application, webForms. Until now, you were in design mode, creating the pieces of the application (well, just a form so far). Running an application on the other hand, is like executing a standard application where you can interact with different parts of it, enter and retrieve data.

  1. In design mode (you are already there) find the big yellow button, Access this application and click it. The application will open in the run mode and all design elements will be replaced with a good looking environment waiting for you to enter data.
  2. On top of the form, next to its title, click the More Actions menu and select Embed in your Website (figure 9).
    Starting the embed process
    figure 9. Starting the embed process.
  3. Click Click Here in the next dialog box (figure 10) to have access to the form without needing Zoho credentials (while entering data) and then copy the code snippet (to the clipboard).
    The generated code snippet
    figure 10. Reviewing the final design.




Embedding the form

You have generated a embed code that loads the form designed in Creator anywhere in the body of the web page you paste it. Such web page could be a post or a page in your blog, or in any website that you have the rights to add HTML content to.

Here I am just going to demonstrate how to embed our Creator form in a WordPress page. Other blogs (Blogger, MovableType, etc.) or CMSs (Joomla, Drupal, etc.) will follow a similar approach with some difference in the details. The point is to paste the code snippet in a HTML body.

  1. Login to your website (WordPress, in here) admin area.
  2. Add a new page (Pages > Add New) and enter a title as well as some body text.
  3. Turn the editor to HTML view where you can see the underlying code.
  4. Paste the code snippet in the HTML body in a suitable position. The outcome should look like figure 11.
    embedding the form in the code
    figure 11. Creating a page with the form embedded.
  5. Click Publish to save and publish the form.

Testing the form

To test the form you just need to open the container page. The page looks like other pages in your website with a form embedded in it. The Zoho logo appears at the bottom (in the free edition of Creator), but it is no big deal.

Try to enter some values in the form and click Submit when you are done.

If you skip a value that is mandatory (identified with a red asterisk) or enter wrong information (e.g. enter a number in email box) the form will show an error message asking you (the visitor) to enter data correctly (figure 12). It actually validates the values against the rules you have set while designing the form (figures 4, 5, 6, 7).

Testing the form
figure 12. Testing the form.

Web developers will be amazed by the features Creator provides out of the box. Easy interface design and validation plus many other features that are beyond the scope of this tutorial.

Now your visitors are able to participate in the survey and give their feedback using a form that you created in less than an hour.

But where will all that data go?

Extracting the data

Collecting data is not even half of the job. Behind the scene you need to extract the entered data to analyze it for whatever reason that is important form you.

The good news is that while you were busy designing your form, Creator made a View for that particular form by which you can extract the entered data. Views are like customizable portals to data. Although views are way more powerful than just showing you the data, but we just stick to one feature (viewing raw data) for you to see where the incoming data goes to.

In Creator, in the run mode, open the survey View from the sidebar (figure 13).

Extracting the data
figure 13. Extracting data.

You can navigate through data, search, filter, and even export it to different formats. You may even embed this form in another web page, but I leave this to your imagination since you gained enough knowledge to do it yourself.

Congratulations, you have managed to create a simple, but powerful survey application with few clicks and no coding at all.

What next?

Creator is a powerful database application creation platform, that  many call it the online Access. But I believe it is even more useful because it is cloud-based and allows you to create multi-user internet-based applications that can be used by SMBs and SMEs.

The webForms application, can have more forms for guest-book, feedback, inquiry, etc. In fact you can create a full-fledged data oriented website using a blogging platform and a database application hosted on Zoho Creator.

Don’t forget to checkout the Creator help to unleash its power and use it to solve real life problems.

government,politics news,politics news,politics

Creating organization groups in Zoho business

by Ali. 2 Comments

One of nice features in zoho Business is organization groups that allow you to really collaborate and share documents, tasks, and links between the team members.

However creating such group although looking simple is a bit tricky.

Many users (including myself) reported that one they want to creat organization groups, it would give them a vague error message. This is because in creating the group you don’t specify a moderator!

I found this totally by accident (I’m not sure if this is included in the documentation) that every organization group needs a moderator along with the members to be specified.

government,politics news,politics news,politics

We owe Zoho big time

by Ali. 0 Comments

Few weeks ago I rediscovered Zoho! I saw it before but the urge of trying an online office never occurred to me.

It’s been sometime that we were facing difficulties keeping our alternative property listing updated where we had the latest updates. Then we could keep the master system updated and use the local excel files for fast data transfer to partners or 3rd party property portals since our main system don’t offer such a luxury (well, security reasons as always!)

Well, it’s been almost a year that I was literally begging the top management to let us implement a tiny database (LAMP) on the net and solve the productivity issues we are facing. Every time I got rejected till recently that things got crazy! So I got the green light but not only I didn’t have time to do it by myself or supervise a development team, but also I was even to busy to order a 3rd party company to do it for us!

I was surfing back and forth that I found Creator, the wizard stick of Zoho. Creator is an extremely easy to use database development platform and it is online! Forget about struggling with Access for small database applications where you don’t even get an option to take your data online on a cheap LAMP server.

People who did it know that how frustrating it could be to deal with PHP and MySQL on small projects. It could take 10 to 30 days to make something representable and the pity is that you waste a lot of time with UI only. Even frameworks won’t help you that much and Rails will take smetime too.

After tweaking and learning Creator (took me less than hour!) I managed to create an application that met almost 80%-90% of our needs! I just couldn’t believe it.

I created an application (without even touching or seeing the actual database) that is able to store relational data in 3 different entities (let say tables) and show them in 8 different views (reports).

The UI easier than in a typical RAD and I could define basic validation constraints on the go.

I just love the views! You get a full list of the table and you can filter the resultset quickly with “filters” intelligently made based on some fields. There is a great search feature that you virtually can make some of the most sophisticated criteria sets.
It is also so easy to export data immediately to some of most common formats (Excel, PDF, RSS, CSV, …) that saves you a big deal of time transferring data between heterogeneous platforms.

I also created users for our internal staff with different authorization level that they could play as safe as possible. In the other hand I did the same for some of the 3rd party portals we work with and they could easily login to the system and see only the view was assigned to them and get the information the want without even bothering contacting us.

Isn’t it just awesome?! Yeah, many packages do that and even do it better but for how much? This application cost me $0 if you ignore 2-3 hours I put in total for developing and debugging.

This is what I can really call Web 2.0 and I am ready to even pay for it if I get a better customer support.

Zoho has many other fantastic web applications. For instance “Database and Report” is a hardcore database tool but was not suitable for my audience. CRM and Business package look powerful too although I found it not very suitable for our other requirements. They still need some fine tuning.

We are now using Zoho Creator for more than 15 days and it works very good although I have some minor limitations in developing even more features part of which is promised in the next versions.

government,politics news,politics news,politics