Hi all,
I have an option set ‘Countries’. I get the country name from a geolocation plugin. How to put the name of the Country that the plugin returrns as default value in a dropdown?
Thanks
you should consider using a searchbox instead
or create a table with all country names (ask for chatgpt)
Thanks, I know but already have made Countries as an Option Set and is a big change in App to switch to table. Any idea how to do it with option set?
@alexandermooreint are you sure that the country name returned by the plugin will 100% of the time match the country name in your Option Set? If so, try the following:
- Set your dropdown type to your Countries Option Set if not done already
- Set the dropdown’s default value to All Countries:filtered
- Set the filter to This Countries’ Display is
Country returned by the plugin
Options set are loaded on every page load so it is too heavy I think to get it there