Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submitFieldName not setting name of hidden field #5

Closed
darkalor opened this issue Jul 14, 2015 · 2 comments
Closed

submitFieldName not setting name of hidden field #5

darkalor opened this issue Jul 14, 2015 · 2 comments

Comments

@darkalor
Copy link

According to documentation

// Specify the name attribute for the hidden field that will contain the formatted date for submission.
submitFieldName: "date", 

It seems that it sets the name only for the 3 input fields, but not for the formatted hidden input.
Looking at the sources

    // Build a hidden input and set this.$element as the wrapper
    hiddenField = $("<input/>", {
        type: "hidden", // Set to type hidden after development
        name: this.internals.submitFieldName
    });

Should probably be:

     name: this.config.submitFieldName
@pensierinmusica
Copy link

+1

@IckleChris
Copy link
Owner

Nice catch, fixed in the above commit 👍

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

No branches or pull requests

3 participants