sections.inputphone.geoIpLookup.xhtml Maven / Gradle / Ivy
The newest version!
International phone numbers input with initial country based on IP location lookup using
https://ipinfo.io .
When setting initialCountry
to "auto", you must use this option to specify a custom function
that looks up the user's location, and then calls the success callback with the relevant country code.
Tip: store the result in a cookie to avoid repeated lookups.
${showcase:getFileContent('/sections/inputphone/example-geoIpLookup.xhtml')}