Hi @core2021,
Thank you for contacting us.
You can find the country by adding an address field or by adding a hidden field that captures their IP address so that you can get more info about where they are submitting from.
Let us know if you have any additional questions.
Best,
Jonathan S
Hi @core2021
Allow me to jump on this too,
You can give it a try on this script which uses two hidden fields:
https://gist.github.com/patrickfreitasdev/3e19d9693ab03ba577dea99955dd5573
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Update line 13 adding your custom form ID,
Enable your form to load from Ajax:
https://monosnap.com/file/4ITwSdJ75az3uCSL8um1347yAghxfZ
Add one hidden field ( hidden-1 )
Set it as user IP:
https://monosnap.com/file/ul0NcZBkANJSiWyMCMYTcCny2oDX9h
Add a new hidden field ( hidden-2 ), set it as a custom value, you can leave it empty
https://monosnap.com/file/RiHXnJ0qQPoMZRxZMekMdMTuCEKOkZ
When the Forminator render and get the IP from hidden field 1, the JavaScript will get the country from this site https://www.iplocate.io/api/lookup/ and then add as the value in the hidden-2
On your email template, you can use the {hidden-2} and it will receive the user country too.
Best Regards
Patrick Freitas
Hi @core2021
I hope you are doing well and safe!
We haven’t heard from you in a while, I’ll mark this thread as resolved.
Feel free to let us know if you have any additional question or problem.
Best Regards
Patrick Freitas