Solved

Has anyone gotten SmartForm field masking to work?


Badge +6

There is an article discussing how to accomplish it  HERE. However I have been uable to get it to work in the latest version of Smartforms. Any suggestions?

 

Thanks

 

Dave

 

 

icon

Best answer by Kran 4 May 2017, 20:11

View original

4 replies

Badge +9

Hi FrozenForms,

 

        This works fine, make sure youare adding script inside opening and closing <script> tag

 

You can also refer a example Textbox control for Password field with Mask  to achive same.

 

 

let me know if this helps you.

 

Badge +6

Hi Kran,

 

For just masking a field called IDtxtBox, does this sript look correct?

 

<script> $(window).ready(function(){

var passwordField = $(‘input[name=”IDtxtBox”]’);

passwordField.get(0).type = ‘password’</script>

 

I have tested this without success so it must be incorrect.

Badge +9

Hi FrozenForms,

 

There is sentex error in query, at the end before closing script tag  "});" was missing.

 

Please try this.

 

 

<script>

$(window).ready(function(){
var passwordField = $('input[name="IDtxtBox"]');
passwordField.get(0).type = 'password';
});

</script>

 

you can use jsFiddle to test your jQuery, reffer below screenshot.

 

 

Badge +6

That was it! Thanks so much!

 

Reply