• Resolved Radovan

    (@radovand)


    Hi,

    I need a solution to the following problem.

    The following code displays the results table of a form usage:
    [CP_CALCULATED_FIELDS_RESULT_LIST formid=”1″ layout=”table” table_head=”IP,Name,Email,Results,Link” table_fields=”ipaddress,fieldname1,fieldname2,fieldname3,thank_you_page”]

    Instead of the IP, I would like to display the location.
    For this I used the following script, but I don’t know how to insert it in the results table.

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>    
    <input class="ip" value="">
        <button class="send">Vezi adresa IP</button>
        <span class="city"></span>,
        <span class="country"></span>
    
        <script>
            $('.send').on('click', function () {
    
                $.getJSON('https://ipapi.co/' + $('.ip').val() + '/json', function (data) {
                    $('.city').text(data.city);
                    $('.country').text(data.country);
                });
            });
        </script>
Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi! We’d like to help but we can’t reply about that in this forum. We are not allowed to support any customers in these forums, and the shortcode for the submissions list is a commercial feature.

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Show IP location in results table’ is closed to new replies.