12.11.2019, 21:09 (This post was last modified: 12.11.2019, 22:27 by 3r1ck.)
greetings companions
Do you have any other method to mask the text field with asterisks in Mozilla Firefox? It works in Chrome with the following style, but it does not work in Firefox.
(14.11.2019, 08:12)admin Wrote: 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);
}
});
It seems that it doesn't work using "Inline in Usermode" on a 250 byte string input box... Is it possible?
I need to mask the input of a password value stored inside a 250 byte string address.
Is there any way to do it?
Thanks
Masking the value is rather complicated. It can be done easier via CSS but the number of "*" will be fixed. Set Additional class to password and use Custom JavaScript from here: https://forum.logicmachine.net/showthrea...8#pid14688
(30.07.2021, 07:33)admin Wrote: Masking the value is rather complicated. It can be done easier via CSS but the number of "*" will be fixed. Set Additional class to password and use Custom JavaScript from here: https://forum.logicmachine.net/showthrea...8#pid14688