PDA

View Full Version : inputtext and clearing


zalex
08-11-2006, 03:30 AM
Hi.

I have two question for a form.

First, i need to clean the form after the validation, so i make a clear method.
I used clearText() for the textfields, but i havn't find anyway to reset radio button and textlist.

Second, i tried to make a dynamic change of password type for input text :

<class name="mytextfield" width="140" height="16" bgcolor="0x00FF00">
<attribute name="password" value="false" />
<attribute name="multiline" value="false" />

<inputtext password="false" name="textField" width="${parent.width-2}" align="center"
height="${parent.height-2}" valign="middle" />

<method event="oninit">
this.textField.password = this.password;
Debug.write('password :',this.password,' : ', this.textField.password);
this.textField.setMultiline(this.multiline);
</method>

but if the debug write me that the two fields are "true" the password is still normal (no *****)

EvaF
08-11-2006, 06:02 AM
hi,
see http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=4684&highlight=password
(last replay)

zalex
08-11-2006, 06:11 AM
ok so, it's not possible, because the password is final.
Th bug is reported, but i haven't seen if it had been fixed or if it's possible to "patch" it...

Thanks.

No idea to reset the radiogroup and the textlist ?