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 *****)
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 *****)