Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
3111 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Anybody know of a way to retrieve a client's IP address via a form? Maybe us
jordanp
over 11 years ago
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
0
shelzle
over 11 years ago
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);
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
shelzle
over 11 years ago
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);
}
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data