Linda Nemitz
28th September 2016, 18:03
Hi,
I have a situation where user enter input and I want to make their entry on the input invisible. Does anyone know if this is possible?


pw1 = "Prompting for password"
pw2 = "Password"
ret.val = input.string(pw1, pw2, 10, 10, pw3)

I want pw3 to be invisible when user enters values in the field.


:)

bhushanchanda
28th September 2016, 18:29
Hi,

Don't think that's possible with this function.

This function starts a main window with given title.
This window contains:
- a label, indicating the string to be asked for
- an input field with given width (p.width) and number
of visible characters (f.width)
- two buttons (OK and Cancel)
The string value of the input field will be stored in pattern argument

Not sure on your version, but on LN, you can use inputfield.password() or dialog.* functions to make field a password field.

With input.string() at max what you can do is, make the visible length as 0. That would hide it a bit.

ret.val = input.string(pw1, pw2, 10,0, pw3)

vahdani
28th September 2016, 18:41
Hi Linda,

use the function inputfield.password() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_inputfield_password)!

Something like this:

declaration:
extern domain tcnama form.name
extern domain tcmcs.str16 form.password

|****************************** program section ********************************
before.program:
inputfield.password("form.password")