I'm working on a D8 project and I have a webform where I use webform_address type fields.
If the country (which is a mandatory field) in those fields is empty I'm getting the generic error "An illegal choice has been detected. Please contact the site administrator.".
Is there any way to change it?
I tried to use the
hook_webform_element_alter in order to add custom validation in my field but the country is a subfield of address field.
Any thought/idea/solution would be valuable!
Thank you in advance.