- Issue created by @jumoke
- Status changed to Needs review
10 months ago 1:44pm 15 June 2024 - last update
10 months ago 43 pass - 🇺🇸United States jumoke
Small patch to take out required check while hiding the dropdown when there is only one possible value.
- 🇮🇳India vinai_katiyar Delhi NCR
Hi @jumoke,
I have tested the patch mentioned in #3. It hides the Country field when the dropdown contains only one country, and the Address field is not required. However, I observed that if the Address field is set as non-mandatory and a default country is specified, then by default, Address module provides two options for the Country field: "None" and the default country. If "None" is selected, then the Address field will not be displayed to the web user.
After applying patch #3, the "None" option is no longer available, preventing the Country field from being hidden from the web user.
Kindly refer to the attached screenshots.