Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Added support to set up a validate options for validate() in "form" type #19

Merged
merged 1 commit into from
Aug 23, 2011

Conversation

Perlover
Copy link
Contributor

Sometimes i need to setup validate options for validate() method (in dform: '[pre]' subscription for 'form')

Example: current version doesn't allow to me set up validate options for radiobuttons. I cannot use validate subscription for "radiobutton" (because it's "div" and there is exception of validate plugin)

I don't know other way only to do it through:
form.validate({rules: {radio_group: "required"}})
But current version of dform doesn't have a way to setup this options

Here a patch
Now we can to do it like:
{
action: "/url/here/",
method: "post",
validate: {rules: {radio_group_name: "required"}},
elements:
[
....
]
}

My examples are works for this.

daffl pushed a commit that referenced this pull request Aug 23, 2011
Added support to set up a validate options for validate() in "form" type
@daffl daffl merged commit 43b9c40 into daffl:master Aug 23, 2011
@Perlover
Copy link
Contributor Author

Thanks! :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants