Add additional fields to your comment forms to prevent spam, survey your users, or quiz them before they leave a comment.
The shortcode defaults are both the settings for the default question which will appear on your site and the default settings if you use the
[vkct] shortcode without any options.
Note - Answers given are done by near match. Common punctuation is stripped and the answer is converted to all lowercase. So, if the answer you are expecting is “Philip K. Dick”, then “philipkdick” or “Philip K Dick” would be accepted, but “Phillip K Dick” would be rejected.
These settings affect all of the VKCT fields.
<i>as HTML markup. Defaults to *.
<i>as HTML markup.
[vkct question = 'any string' required = 'true' or 'false' display = 'above' 'below' or 'none' answer = 'any string' or 'Option1#!Option2#!Option3' or '#!Option1#!Option2#!Option3' ]
For the answer option, any string (e.g. 'Answer') will generate a text field input. A list of options separated with a hashbang (#!) will generate a dropdown menu, with Option 1 selected as the default. If you start the list with a hashbang, the first choice will be an empty field, which, if the field is required, will require the user to select an option before posting a comment.
You wrote a post on PHP frameworks, and want any one who is going to leave a comment to indicate what their favorite framework is. Adding
[vkct question="What is your favorite framework?" required = "true" answer = "#!Cake PHP#!Yii#!Zend"] will add a dropdown menu to the comment section from which the user will have to chose from Cake PHP, Yii, or Zend, and if they do not choose an answer, their comment will be rejected.