I add some help in json for Address and i would like to hide all of othe field like street and etc.
I already did it so all works, but the question is how to make validator proreply.
In my case when u select option it will field values in input field, but the problem if u dont select it it wont. So i would like push to user some message to this fild like - please use help options to complete your address;
I tryed to do it lke this - but no result:
Custom(x =>
{
//if yes, then ensure that state is selected
if (x.StateProvinceId.Value == 0)
{
return new ValidationFailure("Address", localizationService.GetResource("Address.Fields.StateProvince.Required"));
}
return null;
});
How it looks like: