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

no 'name' attribute? #286

Closed
sjsiegel001 opened this Issue Sep 10, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@sjsiegel001

sjsiegel001 commented Sep 10, 2017

it would be nice if there was a name attribute for each field

@DelfsEngineering

This comment has been minimized.

Show comment
Hide comment
@DelfsEngineering

DelfsEngineering Sep 10, 2017

You can add any additional keys to the schema.fields object.
Then in your custom component reference it with this.schema.myKey
What is your use case?

DelfsEngineering commented Sep 10, 2017

You can add any additional keys to the schema.fields object.
Then in your custom component reference it with this.schema.myKey
What is your use case?

@sjsiegel001

This comment has been minimized.

Show comment
Hide comment
@sjsiegel001

sjsiegel001 Sep 10, 2017

Thanks for the quick response. I'd like to submit the form traditionally without AJAX. Could you provide an example of this technique?

sjsiegel001 commented Sep 10, 2017

Thanks for the quick response. I'd like to submit the form traditionally without AJAX. Could you provide an example of this technique?

@sjsiegel001

This comment has been minimized.

Show comment
Hide comment
@sjsiegel001

sjsiegel001 Sep 11, 2017

To anybody else interested, here's the solution I've come up with. It's definitely not ideal but it's a cute little jQuery fix:
updated: function () { $('input').each(function(i, obj) { var inputid = $(this).attr('id'); $('input').attr('name', inputid); }); }

sjsiegel001 commented Sep 11, 2017

To anybody else interested, here's the solution I've come up with. It's definitely not ideal but it's a cute little jQuery fix:
updated: function () { $('input').each(function(i, obj) { var inputid = $(this).attr('id'); $('input').attr('name', inputid); }); }

@amoshydra

This comment has been minimized.

Show comment
Hide comment
@amoshydra

amoshydra Sep 14, 2017

This issue #78 seems to suggest that input field should come with a name attribute already. However, that's not the case in my testing.

amoshydra commented Sep 14, 2017

This issue #78 seems to suggest that input field should come with a name attribute already. However, that's not the case in my testing.

@icebob

This comment has been minimized.

Show comment
Hide comment
@icebob
Member

icebob commented Oct 6, 2017

@icebob icebob closed this Oct 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment