do not show the characters in the fields when key entering

Discussions about creating CAPI applications to run on Android devices
Post Reply
AriSilva
Posts: 465
Joined: July 22nd, 2016, 3:55 pm

do not show the characters in the fields when key entering

Post by AriSilva » October 25th, 2020, 7:33 am

Is there a way to show * instead of the real characters being entered?
Like in the password fields?
Best
Ari

htuser
Posts: 482
Joined: December 19th, 2011, 6:26 pm
Location: HAITI

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

Post by htuser » October 25th, 2020, 2:45 pm

have you tried prompt(,password)? https://www.csprousers.org/help/CSPro/p ... ction.html

Best Regards,

AriSilva
Posts: 465
Joined: July 22nd, 2016, 3:55 pm

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

Post by AriSilva » October 25th, 2020, 5:00 pm

Thanks, I´ll try that.
Did not know about that.
Best
Ari

AriSilva
Posts: 465
Joined: July 22nd, 2016, 3:55 pm

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

Post by AriSilva » October 27th, 2020, 6:12 am

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);
Best
Ari

AriSilva
Posts: 465
Joined: July 22nd, 2016, 3:55 pm

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

Post by AriSilva » October 27th, 2020, 6:30 am

Sorry, plz disregard my previous note.
I´m sending these notes without really checking what the programmers are doing. My fault.
Best
Ari

Post Reply