Restrict Space and Force Uppercase in a Form


2022-07-26_23-21-27.png

Get Component ID:
2022-07-26_23-40-13.png

Find Field IDs:

Replace the ID found here in '#field_' within the code snippet.

2022-07-26_23-50-02.png


Add JavaScript Code:

TB.render('component_3', function(data) {
    $(function(){
      $('#fieldP74QYbjBEm').bind('input', function(){
        $(this).val(function(_, v){
          return v.replace(/\s+/g, '').toUpperCase()
        });
    });
});
});