Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Srinivas S.M #1
Validators Enable & Disable Issue
Hi Guys ,
I have used few validators on few fields in my form, i have a reset button
which reset the current contents of those fields.
When i do that it starts shouting this field is required.....is there any
means of enableing and disabling these validators as required. I tried using
mx.validators.Validator's enable and disable routine's to do that job i did not
succed. ihope my way of doing it is wrong. if you know to do it then please
tell me.
the code is as bellow in application tag i have
<mx:Model id="test">
<field>{testf.text}</field>
</mx:Model>
where 'testf' is a TextInput
on press of some button i am validating it in a function and doing some other
things then lateron after operation i reset testf TextInput field using
testf.text=""; When i do that it starts throwing the validation errors. Is
there any means like as & when i reset , before to that i disable the validator.
kindly help me.
This is my 4 or 5 th post i have not got solutions to any of the
problems....please do help me.....:light;:disgust;:D:D
Srinivas S.M Guest
-
Enable Disable fields onclick
I have a cfinput field that is disabled when the form first loads (disabled="true") I want to click a button to enable the field. ... -
disable/enable
I have a form to included these file 1. Radio buttons. button1, button2 2. Some text boxes: fname, lname, address, phone, etc. 3. Some submit... -
enable/disable
How can do disable and enable for radio box? it worked for all my text box but not for radio box ======= <script language="JavaScript"> function... -
Wanted:PL/SQL to Disable & Enable Constraints
I need one or two PL/SQL's that will let me - Disable ALL Constraints for one or more tables and at a later time - Enable ALL Constraints... -
how to enable the required validators in javascript
Jenet: Specify in the OnSubmit event of your FORM element the name of the javascript function you want to call. <form method=post... -
Chip #2
Re: Validators Enable & Disable Issue
I ran into the same thing. The work around is to set the
requiredFieldError attribute of the validator to a blank string.
Example: <mx:PhoneNumberValidator field="UserInfo.Phone"
requiredFieldError=""/>
Good Luck!
Chip
Chip Guest



Reply With Quote

