Skip to main content
Nintex Community Menu Bar
Solved

Has anyone gotten SmartForm field masking to work?

  • May 3, 2017
  • 4 replies
  • 16 views
  • Translate

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.

 

 

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+9
  • 142 replies
  • 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.

 

Translate

Forum|alt.badge.img+6
  • Author
  • Rookie
  • 43 replies
  • 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.

Translate

Forum|alt.badge.img+9
  • 142 replies
  • 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.

 

 

Translate

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

That was it! Thanks so much!

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings