Prevent date input pop-up JS code

No worries! I was able to get this to work :slight_smile:

Here’s a video on how to set this up

And here’s the code


TB.render('component_ID', function(data) {
    data.ele.find('.date-column').click(function(){
        setTimeout(function(){
            $('.popover input').inputmask({
                alias: 'datetime',
                inputFormat: "mm/dd/yyyy"
            });
        },200);
    });
    data.ele.find('.time-column').click(function(){
        setTimeout(function(){
            $('.popover input').inputmask({
                alias: 'datetime',
                inputFormat: "HH:MM TT"
            });
        },200);
    });
    data.ele.find('.datetime-column').click(function(){
        setTimeout(function(){
            $('.popover input').inputmask({
                alias: 'datetime',
                inputFormat: "mm/dd/yyyy HH:MM TT"
            });
        },200);
    });
});
2 Likes