How can it show the IP address of the user in the form?

  • telecme
    Asked on December 25, 2014 at 9:05 PM

    Hi, i want to let the menber know i can detect his IP to protect cheating, so the form should show the menbers' IP. I know after his summition i will receive the notificatiom including IP, but i'd like he know as well and previously. How can i do it? pl. kindly tell me.

  • Ashwin JotForm Support
    Replied on December 25, 2014 at 11:00 PM

    Hello telecme,

    Please be noted that there is no built in widget/feature to know the user's IP address and display it on form. 

    It is easy to know the IP address with JavaScript code but since we cannot add JavaScript code in JotForm, we will have to add 3rd party HTML code to achieve your requirement. If you search google you will find multiple options but let me share two of them with you:

    #1:

    <p style="display: block !important; width: 160px; text-align: center; font-family: sans-serif; font-size: 12px;"><a href="http://addgadgets.com/ipaddress/" title="IP Address Lookup"><img src="//widget.addgadgets.com/ipaddress/" alt="IP Address Lookup0" width="160" height="102" style="border:0"></a><br><a href="http://addgadgets.com/ipaddress/" title="Find IP Address" style="font-family: sans-serif; font-size: 12px">IP Address</a></p>

     

    #2

    <center><a href="http://freebloghitcounter.com/free-ip-checker-on-my-website"><img alt="IP Checker1" src="//websmultimedia.com/widgets/ipchecker/ip-checker.php?bg=17&c=1" style="margin-bottom:5px;"></a><br><a href="http://freebloghitcounter.com/free-ip-checker-on-my-website" style="font-size:10px;">Free IP Checker</a></center>

    You can add the above code in a text field and it will display the IP address. Please check the screenshot below:

    How can it show the IP address of the user in the form? Image 1 Screenshot 32

     

    How can it show the IP address of the user in the form? Image 2 Screenshot 43

     

    Please take a look at the following form where I have added both the codes:  http://form.jotformpro.com/form/43583189179974? Feel free to clone this form for a closer look. The following guide should help you in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    I am also sending a feature request to our back end team to find a possibility of adding a widget to display the IP address. We will get back to you as soon as we have any update from them.

    Thank you!

  • telecme
    Replied on December 29, 2014 at 5:00 AM

    Dear ashwin_d:

    Many thanks! it works  well of the code. Thank you.

  • Ashwin JotForm Support
    Replied on December 29, 2014 at 6:10 AM

    Hello telecme,

    You are welcome.

    I'm very pleased that I was able to help you.

    Do get back to us if you have any questions.

    Thank you!

  • TitusN
    Replied on July 7, 2015 at 5:03 AM

    Hello, 

    With the Get Visitor Location widget, you can get a lot more detail about the user - including geographic details about the IP Address - 

     

    http://widgets.jotform.com/widget/get_visitor_location

     

    Let us know. 

    Thanks!