This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

mask the text field
#7
Use this Custom JavaScript. It will switch input type to password if your object element has password class and revert to text otherwise.
Code:
$(function(){
  var _preConfigureControl = preConfigureControl;

  preConfigureControl = function(widget, el, type, main) {
    if (type == 'textinput') {
      var password = widget.el.hasClass('password');
      el.find('input').attr('type', password ? 'password' : 'text');
    }

    return _preConfigureControl(widget, el, type, main);
  }
});
Reply


Messages In This Thread
mask the text field - by 3r1ck - 12.11.2019, 21:09
RE: mask the text field - by admin - 13.11.2019, 06:34
RE: mask the text field - by 3r1ck - 13.11.2019, 13:31
RE: mask the text field - by admin - 13.11.2019, 13:41
RE: mask the text field - by 3r1ck - 13.11.2019, 13:54
RE: mask the text field - by admin - 13.11.2019, 15:36
RE: mask the text field - by admin - 14.11.2019, 08:12
RE: mask the text field - by jmir - 29.07.2021, 10:44
RE: mask the text field - by admin - 29.07.2021, 13:44
RE: mask the text field - by jmir - 30.07.2021, 05:02
RE: mask the text field - by admin - 30.07.2021, 07:33
RE: mask the text field - by jmir - 30.07.2021, 07:49

Forum Jump: