$rules[] = array('verifyCode', 'required');
$rules[] = array('verifyCode', 'required', 'on' => 'register, register_without_confirm');
<?php if (!param('useReCaptcha', 0)):?>
<?php echo $form->textField($model, 'verifyCode',array('autocomplete' => 'off'));?><br/>
<?php endif;?>
<?php $display = (param('useReCaptcha', 0)) ? 'none;' : 'block;'?>
<?php echo $form->textField($model, 'verifyCode', array('autocomplete' => 'off', 'style' => "display: {$display}"));?><br/>
<?php if (!param('useReCaptcha', 0)):?>
<?php echo $form->textField($user, 'verifyCode',array('autocomplete' => 'off'));?><br/>
<?php endif;?>
<?php $display = (param('useReCaptcha', 0)) ? 'none;' : 'block;'?>
<?php echo $form->textField($user, 'verifyCode', array('autocomplete' => 'off', 'style' => "display: {$display}"));?><br/>
support wrote:Hello.
If the telephone number is input in the listing, it is taken from the listing
Users browsing this forum: No registered users and 0 guests