Skip to main content
Nintex Community Menu Bar
Solved

Has anyone gotten SmartForm field masking to work?

  • May 3, 2017
  • 4 replies
  • 20 views

Forum|alt.badge.img+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

 

 

Best answer by Kran

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.

 

 

4 replies

Forum|alt.badge.img+9
  • May 4, 2017

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.

 


Forum|alt.badge.img+6
  • Author
  • Rookie
  • May 4, 2017

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.


Forum|alt.badge.img+9
  • Answer
  • May 4, 2017

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.

 

 


Forum|alt.badge.img+6
  • Author
  • Rookie
  • May 4, 2017

That was it! Thanks so much!