//callback which can be used to show a thank you message
//and reset the form
alert("Thank you, for contacting us");
Note that the url here is different than the normal form url. It has an extra /ajax in it. For normal forms the url for action would be http://getsimpleform.com/messages?form_api_token=39c8f9e5a2de15ad63469475702522b9 but for ajax requests it should be http://getsimpleform.com/messages/ajax?form_api_token=39c8f9e5a2de15ad63469475702522b9
Now you can prevent getting notified for spammy messages just by signing up for an https://akismet.com/ account and configuring it on simpleform. Say goodbye to Spam!
If you already have a simpleform account, go to the page http://getsimpleform.com/forms/<your-api-key>/edit and enter your akismet key, and change the name attribute of your input/textarea fields to message or content. That’s it! you are all set.
Update: The url to edit your akismet key has changed to http://getsimpleform.com/forms/your-api-key/edit
You can now access the messages in simpleform as json. You just have to append a .json to the url. e.g. http://getsimpleform.com/messages.json?api_token=479afc5e07adc370e79cc75ad751d071 This way you can display your messages anywhere you want.
Today we have launched Simple Form to make online forms easier to build and style. It is very flexible, It allows you to use a form without the annoying iframes and doesn’t impose any pre-built themes on your forms.
The only thing you need to change, to use simple form, is the action attribute on your form and use the post method on it.
As you can see, simple form integrates easily and seamlessly into your app. Hope you guys find it useful.
I should have mentioned this earlier, Simple Form sends you an email notification whenever a new form entry is made on your form (Please add email@example.com to your contacts so it doesn’t go to your spam folder). We’ll make the notifications more flexible in a future version :)