Forum Discussion
Document Library: how make column with drop-down menu of languages that shows flags in the column?
abunte This is certainly a common requirement, and I appreciate you taking the time to explore a solution using JSON formatting. While the code you've provided is a good starting point, I can understand your frustration with the formatting issues you're experiencing.
One potential solution that I would recommend exploring is the use of a custom column web part built using the SharePoint Framework (SPFx). This approach would give you more control over the user interface and the underlying logic for populating the dropdown menu and displaying the flag icons in a more organized and user-friendly manner. By developing an SPFx web part, you could create a custom column that not only displays the language options in a dropdown, but also ensures the flag icons are properly aligned and includes hover tooltips to show the country names. This would address the challenges you've encountered with the formatting and the lack of country name visibility. The key benefits of this approach are the increased flexibility and customization options it provides. You'd be able to tailor the web part to your specific requirements, such as implementing the line breaks you mentioned to keep the flag icons organized, and integrating the selected language data directly with the SharePoint column.
While building a custom SPFx solution does require a certain level of technical expertise, the end result can be a highly polished and seamless user experience that meets the unique needs of your organization. I'd be happy to provide more detailed guidance on how to approach this project, including recommendations for resources and best practices to help you get started. Please let me know if you have any other questions or if there's anything else I can do to assist you in addressing this challenge. I'm here to support you in finding the most suitable solution for your SharePoint environment.