-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, If a user types a letter/invalid format in a datebox and moves focus to another form field, ZK triggers constraint validation and shows a message with the error message. I use datebox in forms with many other inputs that have business validations that I am supporting implementing validators triggered by the save action. Is there a way to unplug invalid format constraint in datebox? Is there a way to find out from the validator that a datebox has letter/invalid format input? I would like to show all form validation messages only after save action. Regards
Hi there.
You can use like constraint="no empty"
Then you just need to do the following :
<groupbox form="@id('fx') @load(vm.selected) @save(vm.selected, before='saveOrder') >
<datebox value="@bind(fx.creationDate)" constraint="no past,no empty"/>
<button label="save" onClick="@command('saveOrder')"/>
</groupbox>
When I say "I would like to show all form validation messages only after save action", I suppose I cannot use any constraints, including internal constraints. Thanks
Asked: 2014-11-05 11:57:11 +0800
Seen: 41 times
Last updated: Nov 11 '14
How to Disable Mandatory Constraint for email textbox
MVVM, How to display @validator error like the constraint attribut error ?
Selectbox - constraint="no empty" not working
Create Crud of a User that has a collection of books
unwanted logging of custom WrongValueException
Java Script error zk.wpd in Explorer
wrong valueException come in front of modal popup [closed]