How to automatically detect and set the visitor’s country

Add this code to your theme’s functions.php file to automatically dectect and set the visitor’s country for an Inbound Now form: