Documentation

isUseCaptcha

bool
CFormOutput::isUseCaptcha(
);

The method checks the condition "does the web form use CAPTCHA". Non-static method.

Method parameters

No parameters.

Returned value

If the web form uses CAPTCHA returns true or false otherwise.

Use

<?if($FORM->isUseCaptcha()):?>
<tr>
    <td colspan="2" height="8"></td>
</tr>
<tr>
    <td valign="top" align="right" class="text">Protection from auto sign-up:</td>
    <td valign="top"><?=$FORM->ShowCaptchaImage()?></td>
</tr>
<tr>
    <td valign="top" align="right" class="text">Enter the word from the image<?=$FORM->ShowRequired()?>:</td>
    <td valign="top"><?=$FORM->ShowCaptchaField()?></td>
</tr>
<?endif?>

See Also

  • CFormOutput Class
  • CFormOutput::ShowCaptcha
  • CFormOutput::ShowCaptchaField
  • CFormOutput::ShowCaptchaImage


  • © «Bitrix24», 2001-2024
    Up