Log out automatically when user closes browser window?

@bradenal, I was going to answer here:

So, you may use the following JavaScript to listen to a form submit, but if there are validation rules set up, it will ignore them. So this will run anytime a user clicks on the form submit button, even if validation rules are triggered and no data is entered.

TB.render('component_ID',function(data){
    data.ele.find('.form-submit button').click(function(){
        //run code here on form submit button click.
    });
});

I’m working with the team to see if we can get a TB.formSubmit() function working.

1 Like