Anybody know of a way to retrieve a client's IP address via a form? Maybe us

Anybody know of a way to retrieve a client's IP address via a form? Maybe using JavaScript or something?...

OriginalPostID-91459

OriginalPostID-91459

  Discussion posts and replies are publicly visible

Parents
  • Please be aware that JavaScript is not supported on Tempo and Mobile enabled forms.

    This code is simple JavaScript. In whole it looks like this and is put into the onload event of the form.

    if (window.FormAPI.getValue("computer_name").id.length <=0){
    if(window.ActiveXObject) {
    var network = new ActiveXObject('WScript.Network');
    var cn = network.computerName;
    window.FormAPI.setValue("computer_name", cn);
    }
    }
Reply
  • Please be aware that JavaScript is not supported on Tempo and Mobile enabled forms.

    This code is simple JavaScript. In whole it looks like this and is put into the onload event of the form.

    if (window.FormAPI.getValue("computer_name").id.length <=0){
    if(window.ActiveXObject) {
    var network = new ActiveXObject('WScript.Network');
    var cn = network.computerName;
    window.FormAPI.setValue("computer_name", cn);
    }
    }
Children
No Data