Record User Location on Login

Hey Tadabase community! I’d like to share with you a method that can be used to record the user’s location upon login. This method stores the location in the user record upon each login session.

I’ve documented details on the method as well as an example run-through in this video. You can go to the 3:27 on the video if you wish to view the preview of the process.

As for the JavaScript code that is applied to the utility page in my video, you can find the code below. Be sure to update the two instances of “component_3” with the component ID of your profile component on the utility page. You can find the component ID by hovering over the info icon in the page builder.

TB.render('component_3', function(data) {
    TB.hideComponent('component_3');
    $(".btn-success").click();
});

I hope this method can be made useful! :slightly_smiling_face:

5 Likes

Would there be a simple way to just log the date the user logged in?