Update Field After User Logs in for the First Time

I am trying to figure out a way to update a field from No to Yes in Accounts to let me know when a user has logged into my Knack App for the first time. I am thinking it will have to use some JavaScript. Any help is greatly appreciated!

Hi Tod,

  1. Create a page. On that page, add a Form view that updates the logged-in Account. On the form, create a Record Rule that updates {FIELD} to yes.
  2. Create a Page Rule on other pages with the following criteria: If {FIELD} is No, redirect to {PAGE} from step 1.
  3. Auto-submit the form when the page loads, for example:
/* Change view_1 to the view key of your form. Add this code to your Custom JavaScript. */
$(document).on('knack-view-render.view_1', function(event, view, data) {