Save IP Address of Logged in User to the Record
In many cases, it may be helpful to have the User's IP address added to the record. In the following example, I have an IP Address saved to the record when the logged-in teacher edits grades.
Step 1
Insert the following code to the JavaScript tab on the layout or pages you wish to use.
$.getJSON("https://api.ipify.org?format=json", function(data) {
localStorage.setItem('ip', data.ip);
})
For example, below the code is inserted into a details page to use on an edit form.
Step 2
Add a text field where you'll store the IP Address:
We'd love to hear your feedback.