You are viewing limited content. For full access, please sign in.

Question

Question

javascript mask stops working

asked on February 22, 2018 Show version history

I have four forms in my bpm and the js mask works in the first form but doesn't work on any of the other forms.  I have confirmed the code is the same for each form by using my text editor to compare.  Is there something i'm missing?  (Forms 10.2.1.246)

 

//Format Budget Codes
$(document).ready(function () {
    $.getScript('https://laserfiche.mcoe.org/Forms/js/jquery.mask.min.js', function () {
    $(".field1 input").mask("999");  
	$(".field2 input").mask("99-9999-9-9999.99-9999-9999-999-999-999");
    $('.cf-collection-append').on('click',function(){
      $(".filed1 input").mask("999");
      $(".field2 input").mask("99-9999-9-9999.99-9999-9999-999-999-999");
        
    	});
	});
});

 

0 0

Replies

replied on February 22, 2018

fixed!!!

0 0
replied on February 22, 2018

Please post what you did to fix the problem.

0 0
replied on February 22, 2018 Show version history

Blake, 

 

I changed the following: 

$('.cf-collection-append').on('blur click change',function(){

...not sure, but I think the filter didn't work because the form wasn't being reloaded completely.  I tried it on the three upstream forms and so far so good.  It works.  

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.