Want to add a "Was this article helpful? Yes No" feture to your content type? The attached screenshot demonstrates the result.

Modify your local theme code with these customizations.

CSS:

 .field-field-helpful { height: 50px; }
 .field-field-helpful .pollfield-title { font-size: 1.2em; float: left; padding: 5px 0 0 }
 .field-field-helpful .form-radios { width: 200px; height: 20px; float: left; margin: 0; padding: 0 10px; }
 .field-field-helpful .form-radios .form-item { width: 50px; height: 20px; float: left; margin: 0; }
 .field-field-helpful .form-radios .form-item label { cursor: pointer; color: #001c47; font-size: 1.2em; font-weight: bold; display: block; padding-top: 3px; }
 .field-field-helpful .form-radios .form-item:hover label { color: #999; }
 .field-field-helpful .form-radios .form-item label input{ opacity: 0; filter: alpha(opacity = 0); margin: 0 2px 0 0;  }
 .field-field-helpful .barcell { width: 100px; }
 .field-field-helpful .barcell .bar { width: 100px; }
 .field-field-helpful .form-radios #edit-choice-0-wrapper { background: url(images/icon_hand.png) left top scroll no-repeat; }
 .field-field-helpful .form-radios #edit-choice-1-wrapper { background: url(images/icon_hand.png) left bottom scroll no-repeat; }
 .field-field-helpful form#pollfield-voting-function-form input.form-submit { display: none; }

Jquery:

Drupal.behaviors.pollfieldsingleresponse = function () {
	// Check if radio button is click
	$(".field-field-helpful form input.form-radio").bind("click", function(){
	  $("form#pollfield-voting-function-form").submit();																																			 
	});
}; 
AttachmentSize
custom_pollfield.png4.38 KB