I have a multistory website as Retail-Website and Wholesale-Website
Configuration with fresh Magneto2.2 at Store >> Configuration >> Customer Configuration >> Show Tax/VAT Number
When I check the front-end of customer registration the configuration dint apply I did cache clean, I tried different combination of the setup dint work.
In Table customer_eav_attribute_website I can see the configuration is correctly added.
I tried this in version 2.2 and in 2.5 fresh project.
Scenarios 1
Admin Input
webA >> required
webB >> optional
Store output
webA >> required
webB >> required
After flush cache Store output
webA >> optional
webB >> optional
Scenarios 2
Admin Input
webA >> required
webB >> required
Store output
webA >> required
webB >> required
After flush cache Store output
webA >> required
webB >> required
Scenarios 3
Admin Input
webA >> optional
webB >> required
Store output
webA >> optional
webB >> optional
After flush cache Store output
webA >> optional
webB >> optional