Joomla captcha Form Field Type

The captcha form field type provides the use of a captcha plugin. Captcha is used on front-end forms to prevent unwanted submission of forms.

Example XML Field Definition

<field name="captcha"
type="captcha"
validate="captcha"
label="COM_CONTACT_CAPTCHA_LABEL"
description="COM_CONTACT_CAPTCHA_DESC" >
</field>

Mandatory Parameters

  • type must be captcha.
  • name is the unique name of the field.
  • validate must be captcha.
  • label (translatable) is the descriptive title of the field.

Optional Parameters

  • description (translatable) is text that will be shown as a tool tip when the user moves the mouse over the drop-down box.
  • namespace

Examples

1. Contact Component

<field
name="captcha"
type="captcha"
label="COM_CONTACT_CAPTCHA_LABEL"
description="COM_CONTACT_CAPTCHA_DESC"
validate="captcha"
namespace="contact"
/>

2. Content Component

<field
name="captcha"
type="captcha"
label="COM_CONTENT_CAPTCHA_LABEL"
description="COM_CONTENT_CAPTCHA_DESC"
validate="captcha"
namespace="article"
/>

 

Star ActiveStar ActiveStar ActiveStar ActiveStar Active