I am currently doing most of my validation of forms using
public function validateFormFunction()
{
//Do validation
return false;
}
However, I was normally still validating atleast one field in the "formFunction.yml" file.
I just came across an instance where I was not doing any validation in the validation.yml file but I still needed the fillin functionality.
When I put just this in my validation.yml file I got an error for not having a methods category
fillin:
enabled: true # Enable the form repopulation
param:
name: register_form_two # Form name, not needed if there is only one form in the page
skip_fields: [email] # Do not repopulate these fields
exclude_types: [hidden, password] # Do not repopulate these field types
check_types: [text, checkbox, radio, password, hidden] # Do repopulate these
I think you should be able to use the fillin feature without validating the form through the yaml file.