Feb 27, 2012, 8:12 AM
How to know which field in the formpanel is inValid?
Hi
How to know which field in the formpanel is inValid?
I have a code as
AllowBlank="false" BlankText="Enter Mobile no." MsgTarget="Side"
When I save the record record is save i.e !#{frmUserManager}.getForm().isValid() returns true.
But when I update the the record it returns false... I havent seen any red lines.
So I want to know which field is invalid.
I also have used
Is it because of this the #{frmUserManager}.getForm().isValid() returns false???????????
Vaishali Khatri
Kintu Designs PVT LTD
How to know which field in the formpanel is inValid?
I have a code as
<ext:Button ID="btnUpdate" runat="server" Icon="Disk" Text="Update">
<DirectEvents>
<Click OnEvent="Update" Before="if(!#{frmUserManager}.getForm().isValid()) return false;">
<Confirmation ConfirmRequest="true" Title="Confirm" Message="Are you sure you want to modify the information?"/>
<EventMask ShowMask="true" Msg="Updating record..." MinDelay="10" />
</Click>
</DirectEvents>
</ext:Button>
I have Used in all the fieldsAllowBlank="false" BlankText="Enter Mobile no." MsgTarget="Side"
When I save the record record is save i.e !#{frmUserManager}.getForm().isValid() returns true.
But when I update the the record it returns false... I havent seen any red lines.
So I want to know which field is invalid.
I also have used
<ext:TextField ID="txtUsername" runat="server" Width="255" FieldLabel="Username"
X="20" Y="50" MaskRe="[a-zA-Z0-9]" AllowBlank="false" BlankText="Enter Username"
MsgTarget="Side" IsRemoteValidation="true">
<RemoteValidation OnValidation="CheckUserName" />
</ext:TextField>
<ext:TextField ID="txtPassword" runat="server" Width="255" FieldLabel="Password"
MinLength="8" Vtype="password"
InputType="Password" AllowBlank="false" BlankText="Enter Password"
MsgTarget="Side"
X="20" Y="75" />
<ext:TextField ID="txtConfirm" runat="server" Width="255" FieldLabel="Confirm Password"
X="20" Y="100" Vtype="password"
MinLength="8" AllowBlank="false" BlankText="Enter Password"
MsgTarget="Side"
InputType="Password" IsRemoteValidation="true">
<RemoteValidation OnValidation="CheckPassword"></RemoteValidation>
</ext:TextField>
When I want to update the record this fields are disabledIs it because of this the #{frmUserManager}.getForm().isValid() returns false???????????
Vaishali Khatri
Kintu Designs PVT LTD
Last edited by Vaishali; Feb 27, 2012 at 8:16 AM.