widgets\ActiveForm $validateOnType

$validateOnType public property Whether to perform validation while the user is typing in an input field. If yii\widgets\ActiveField::$validateOnType is set, its value will take precedence for that input field. See also $validationDelay. public boolean $validateOnType = false

widgets\ActiveForm $scrollToErrorOffset

$scrollToErrorOffset public property (available since version 2.0.11) Offset in pixels that should be added when scrolling to the first error. public integer $scrollToErrorOffset = 0

widgets\ActiveForm $validateOnBlur

$validateOnBlur public property Whether to perform validation when an input field loses focus. If yii\widgets\ActiveField::$validateOnBlur is set, its value will take precedence for that input field. public boolean $validateOnBlur = true

widgets\ActiveForm $successCssClass

$successCssClass public property The CSS class that is added to a field container when the associated attribute is successfully validated. public string $successCssClass = 'has-success'

widgets\ActiveForm $validateOnChange

$validateOnChange public property Whether to perform validation when the value of an input field is changed. If yii\widgets\ActiveField::$validateOnChange is set, its value will take precedence for that input field. public boolean $validateOnChange = true

widgets\ActiveForm $requiredCssClass

$requiredCssClass public property The CSS class that is added to a field container when the associated attribute is required. public string $requiredCssClass = 'required'

widgets\ActiveForm $options

$options public property The HTML attributes (name-value pairs) for the form tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = []

widgets\ActiveForm $scrollToError

$scrollToError public property (available since version 2.0.6) Whether to scroll to the first error after validation. public boolean $scrollToError = true

widgets\ActiveForm $method

$method public property The form submission method. This should be either post or get. Defaults to post. When you set this to get you may see the url parameters repeated on each request. This is because the default value of $action is set to be the current request url and each submit will add new parameters instead of replacing existing ones. You may set $action explicitly to avoid this: $form = ActiveForm::begin([ 'method' => 'get', 'action' => ['controller/action'], ]); pu

widgets\ActiveForm $fieldConfig

$fieldConfig public property The default configuration used by field() when creating a new field object. This can be either a configuration array or an anonymous function returning a configuration array. If the latter, the signature should be as follows: function ($model, $attribute) The value of this property will be merged recursively with the $options parameter passed to field(). See also $fieldClass. public array|Closure $fieldConfig = []