This post is marked as solved. If you think the information contained on this thread must be part of the
official documentation, please contribute submitting a
pull request to its repository.
Hello everyone. How can i force form field to don't use data incoming from post in default value?
Hello! If I understand you right, and you whant to clear field with post, you can use the $field->clear(); method.
You can do it like this:
$password = new Password('password', [
'minlength' => 3,
'placeholder' => 'Password'
'messageMinimum' => 'Your password must be longer than 3 characters.',
'min' => 3
$password->clear(); // This
It's correct solution for my problem. Thank you so much.
Not at all!