Hi - I have been trying to follow a couple of previous threads on how to display IP address in a webflow form (from 2018). I think I have followed the instructions properly, but I can’t get it to work!
Was hoping someone might be able to offer some help.
Hey Seb, it’s a pretty simple process and it looks like you’re on the right track. Most likely you have an ID wrong.
Share your readonly link and your published site link if you need help debugging your script.
Note you have a space after the word javascript in your script type, though I wouldn’t expect that to break things. Check your browser console for errors.
There are services that provide IP address tracking and information. You can use an API to fetch the user’s IP address and display it in your Webflow form. Some popular services include ipinfo.io or ipstack.com. You would typically sign up for an account, get an API key, and then make a request from your Webflow site.
Hey Michael, when you’re integrating with services like this in Webflow you typically do it with client-side code, query the API and then do whatever you want with that data.
Here’s the API, you’d need the Security plan to get vpn data.