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

How can we integrate with rich forms and validation? #6

Closed
BenjamP opened this issue Sep 15, 2014 · 5 comments
Closed

How can we integrate with rich forms and validation? #6

BenjamP opened this issue Sep 15, 2014 · 5 comments
Milestone

Comments

@BenjamP
Copy link

BenjamP commented Sep 15, 2014

Originally asked by Robin Berjon, W3C

@rniwa
Copy link
Contributor

rniwa commented Sep 15, 2014

I think we need a generic form serialization API.

@darobin
Copy link
Member

darobin commented Sep 16, 2014

There are two aspects of this. Getting the data out of a form can be made relatively trivial using an API built on top of http://darobin.github.io/formic/specs/json/. It would likely have to be async (since files may be involved) and it would have to accept the activating control as an optional parameter, but it's not rocket science.

In the context of editing there is also the converse: how do we make an editable area participate in form submission. There are various options here. We could have an attribute (possibly reusing the otherwise useless form attribute) and use innerHTML. We could have an event that could be interacted with to provide the data (for the many cases in which submitting the HTML is not what you want).

I think that this is a case in which it would prove very useful to prod the community for use cases.

@BenjamP
Copy link
Author

BenjamP commented Dec 3, 2014

Can you write this in the form of our other use cases so I can add it to the document?

@rniwa
Copy link
Contributor

rniwa commented Dec 8, 2014

I think we should make a generic form participation API, taking this as an important use case.

@johanneswilm
Copy link
Contributor

Should this issue still be here, or should this be moved to some form-related discussion and spec? I will close for now. Please reopen If I am wrong.

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

4 participants