I researched several online form creation and hosting services and determined that JotForm and Allforms were the best choices for creating a contact form for your Facebook Static FBML tab. This is a tutorial on how to create a contact form using JotForm.
Getting Started with JotForm
There is a free option and a paid option. Both have the same features, but the paid option allows more forms, more submissions, etc. Here's a comparison chart.
Getting Started with JotForm
- Set up account (free or paid);
- Click New Form

You can create a form from scratch ("Blank Form"), select a form template (for this tutorial I chose "Contact Us"), or import a form from another website or another form previously created on JotForm. After making your selection, click "Continue"... - "Contact Us" Template
Assuming, for the purposes of this tutorial, you chose "Contact Us," you'll see it has: Name (separate first and last name fields), Email, Message. - Add Drop Down (aka Pulldown Select)

To add your drop-down options, click the small icon to the right of the pulldown box - Add Radio Button
Enter the question, then click the individual options to edit:
- Editing Properties (the gear icon)

You can change the size of the field, or change its order in the form (which can also do by clicking and dragging), or delete or duplicate the question. - Add a Checkbox
The Checkbox configuration options are the same as the Radio Buttons:

- Toolbar
The toolbar options change depending on which field you're editing. This is the main toolbar for "Form Style":

- Themes - Attractive one-click theming options. I chose the "Default" theme for its simplicity.
- Clean up
I got rid of the header and just kept the form.
JotForm Setup & Share
After you have created your form, you then need to set some options for the email that is sent with the form data, as well as generate the code you will need to insert into your Static FBML tab.
- Setup & Share - Email Alerts:
Click the "Setup & Share" tab to activate these choices:

- Click "Notification" to edit Subject of email

- Set From address and Recipient
Click the "Reply-To and Recipient Settings" to set "Sender Name" and "Sender E-mail" (you can set this to the values the user inputs in your form, using {yourEmail} or whatever value the email field has.

- Set redirect after form is submitted.
Click the "Thank You" icon to set what the user sees after submitting the form (Default Thank You page; Custom URL; Thank You message)
Generate the code for your Static FBML
- Click "Share Form" (the "globe" icon in the top navigation) to get the code for your Facebook Static FBML tab. In the popup window, click "Advanced Options" at bottom of window:
. - Click "Full Source Code" in left navigation. (
DO NOT select "Social Networks" — there's a "Facebook" option there and instructions for adding to Static FBML, but the code provided DOES NOT WORK!); Per a Jotform employee's comment below, Jotform has now fixed the "Social Network" tab under "Advanced Options" so that the code it generates works in Facebook. But it doesn't support validation or CAPTCHA. - Click in the "Full Source Code" field to highlight all the content and copy this to your clipboard (Mac: Command+c; Windows: Control+c).
- Per these instructions provided in the JotForm Forum,
replace the last 3 or 4 lines at the bottom of the copied source code (between the last </div> and </form>) with "<input type="submit" value="Submit" >" so the code will work in Facebook.
HyperArts JotForm Example
Check out our example of a JotForm form on a Static FBML tab.
You can customize the CSS for the form in the <style> tags. I added:
label { font-weight:normal; }
.form-label-top { font-weight:bold; }
to bold just the form field labels, but leave the options normal.
Recipient Email Format
Here's the HTML version of the JotForm email that is sent to the specified recipient of form data:

If you have questions about using JotForm, rather than ask them here, please use the JotForm Support Forum.
And, please, if your experience differs from this tutorial, let me know!



#1 by tayfun - June 8th, 2010 at 22:52
Hi,
I work for JotForm and we have recently redesigned our Facebook code generation system so you don't need to do much work now.
Visit http://www.jotform.com/help/22-Adding-Form-to-Facebook to learn more.
Let us know of any problems through the forum and your feedback is always welcome.
#2 by timware - June 9th, 2010 at 05:31
Thanks for the update. Yes, I just tested it and it does now work. Unfortunately, when I wrote this post last week, the Facebook code provided in the "Social Network" tab under "Advanced Options" didn't work at all. So it's good to see you fixed that!
However, your users should know that the form validation via required fields or CAPTCHA doesn't work in the Facebook Static FBML environment. I think it'd be good to make this more explicit so that you're not bombarded by questions about this on your forum.
You're going to be seeing a steady increase in the demand for this, and if you can create a Facebook contact form solution that has all the cool customization features of Jotform AND validation, you'll certainly get higher points from me!
That's why, overall, I preferred Allforms, because even though they don't offer the range of display customization etc., they DO offer validation that works, including CAPTCHA.
And I still have to check out a few other competitors in this space, per a recent comment to my general post about best Facebook contact forms. phpForms and Zoho, and perhaps Twapt and Google Docs.
So keep us updated, Tayfun. And thanks!
#3 by Celene - July 4th, 2010 at 12:06
I have been trying to add an opt in box on my sidebar on Facebook and it doesn't work for me. I can't add FBML to my page for some reason. When I try to add FBML app to my page the app doesn't show up. Any ideas? Thanks so much!
#4 by timware - July 4th, 2010 at 12:18
If you're trying to add a "box" to your sidebar, Facebook has deprecated this. You can't add that sidebar box anymore and at some point the existing ones will disappear. This pertains to the boxes tab, as well.
#5 by Daisy - July 5th, 2010 at 02:40
The free version has almost all the functions as the paid version, however, the free version do have monthly form submission times limit - only 100 submissions' allowed per month for free version.
#6 by Jon - July 13th, 2010 at 11:24
I just found out how to get the contact form to popup in a modal window. Use the following:
<fb:dialog id="my_dialog" cancel_button=1>
<fb:dialog-title>My Title</fb:dialog-title>
<fb:dialog-content>
<form>Contents of the form</form>
</fb:dialog-content>
</fb:dialog>
<a href="#" clicktoshowdialog="my_dialog">My link</a>
Hope this helps someone!
#7 by timware - July 13th, 2010 at 11:29
Thanks, Jon! Nice contribution to the conversation.
#8 by Sarel Klopper - August 4th, 2010 at 12:28
I do not agree that validation is not available. I am not a pro with html or FBML coding but Facebook has a section on form validation. Maybe JotForm can include this within their application? Have a look below:
http://wiki.developers.facebook.com/index.php/Validation_Examples
#9 by timware - August 4th, 2010 at 12:47
Thanks Sarel. I'll check into this.