Hello!

I have created a custom UI dialog with several input fields.

The dialog can only be processed if all input fields are filled:


<Control Id="l1" Type="Edit" X="100" Y="53" Width="220" Height="18"
Property="P1" Text="{80}" />
<Control Id="l2" Type="Edit" X="100" Y="53" Width="220" Height="18"
Property="P2" Text="{80}" />

<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="&amp;Next">
 <Condition Action="disable">P1 = "" OR P2 = ""</Condition>
 <Condition Action="enable"><![CDATA[P1 <> "" AND P2 <> ""]]></Condition>
 <Publish Event="NewDialog"
Value="[WixUI_UserRegistrationDlgNext]">ProductID</Publish>
</Control>


It is working as expected with following "inelegance": Is it possible to
validate the conditions on key press, key down or key up?

At the moment the Condition is evaluated if the control is left (on blur).
It is annoying for our customers, because they enter the data and want to
click on "Next" button, but the button is disabled till the focus is set to
another field.

Kind regards,
thomas
-- 
View this message in context: 
http://n2.nabble.com/Input-validation-on-key-press-tp2155989p2155989.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to