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…
- Not yet re-checked
- Classic builder
Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.
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:
Step 3
In each form that you want to track, add one more option to set the field to the Browser Local Storage value of 'IP' as seen below.
Was this page helpful?
Something wrong or missing on this page? Tell us.