-
Sencha User
ext.data.record conditional validation
Hello,
I am working w/ Ext 3.3
How can I do conditional value checking, on the Ext.data package level, like
if person is married, require spouse name, otherwise let it be blank.
The solution I am looking for should be on the data package. (lets say that I dont have much control about how data is edited, but I am responsible for validating it.)
Ext.Data.Field lets me say allowBlank, true or false. I wonder if I can pass a function there which accepts the record, and returns true or false based on the other fields on the record.
I am looking for an alternative solutions for this, on the Ext.data package, (on the Store or Record level).
-
Sencha User
I'd put complex logic like this in a validateForm function.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules