The following displays the imFeedBack JQuery UI Widget with the form_capture_name option. This option is set to false by default.
The possible values for this option are:
false: Name fields are not displayed
firstName: A First Name field is displayed
fullName: A single input input field is displayed where the user can enter their full name
firstLast: First name and last name fields are displayed
$(document).ready(function(){
$(document.body).imFeedBack({
location: 'left',
form_capture_name: 'firstName',
submit_url: 'http://www.mysite.com/send_mail.php'
});
});
The imFeedBack widget will validate the name field by default (checks whether the field has a value). If you do not want the name fields to be validated, set the validate_name option to false.
$(document).ready(function(){
$(document.body).imFeedBack({
location: 'left',
form_capture_name: 'firstName',
validate_name: false,
submit_url: 'http://www.mysite.com/send_mail.php'
});
});
Select themes from the ThemeSwitcher below to view the different color schemes. I'm using the ThemeSwitcher for this example, but you can create a customized theme on JQueryui.com.
For more documentation on the imFeedBack widget, view my Blog Post.