Page 1 of 1

do not show the characters in the fields when key entering

Posted: October 25th, 2020, 7:33 am
by AriSilva
Is there a way to show * instead of the real characters being entered?
Like in the password fields?

Re: do not show the characters in the fields when key entering

Posted: October 25th, 2020, 2:45 pm
by htuser
have you tried prompt(,password)? https://www.csprousers.org/help/CSPro/p ... ction.html

Best Regards,

Re: do not show the characters in the fields when key entering

Posted: October 25th, 2020, 5:00 pm
by AriSilva
Thanks, I´ll try that.
Did not know about that.

Re: do not show the characters in the fields when key entering

Posted: October 27th, 2020, 6:12 am
by AriSilva
Sorry to insist on the subject.
I´ve used the prompt in an onfocus of the field I was using for the password, with a noinput instruction after, and it worked fine, but...
It values the field, but still waits for an input. As in

PROC MM20_CPF_MENTIRA
onfocus
$ = notappl;

//teste de cpf por prompt, mas continua mostrando na tela
cpfPSW = prompt("Digite o seu CPF", password, numeric);
if cpfPSW <> "" then
$ = 1;
endif;

noinput;

postproc

if $ = notappl then reenter; endif; //para não sair daqui sem valor

cpfString = cpfPSW;
cpfNum = tonumber(cpfPSW);

Re: do not show the characters in the fields when key entering

Posted: October 27th, 2020, 6:30 am
by AriSilva
Sorry, plz disregard my previous note.
I´m sending these notes without really checking what the programmers are doing. My fault.