Validators Enable & Disable Issue

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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. ...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139