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

[Feature] Array input values #74

Open
c0mput3r5c13nt15t opened this issue Aug 16, 2022 · 2 comments
Open

[Feature] Array input values #74

c0mput3r5c13nt15t opened this issue Aug 16, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@c0mput3r5c13nt15t
Copy link

Hi there,

I really admire the time and effort you guys have put into this project, and I want to contribute to it. The feature idea is not mine, but from the team leader of my project, who wants to use remix-froms but needs an array input in the application.

The difficulty with an array input is that it is not really natively supported by HTML (apart from using multiple inputs or separating by some delimiter, which are both inelegantly). To still make it work without JS, I would propose the following:

The input sends a request to an API whenever an element is added or removed, the API then returns the form element just with an updated list of the elements inside. That way for the developers it just works and is a very convenient feature, even outperforming the native HTML in a clean manner. The only drawback might be a bit more traffic, but that shouldn't be any problem.

https://www.youtube.com/watch?v=w2i-9cYxSdc&list=PLXoynULbYuEDG2wBFSZ66b85EIspy3fy6&index=4 -> This as a native input type without a database behind but instead as a kind of "recursive" element

I would appreciate if we could work together to make this work and to hear feedback from you.

Thanks in advance <3

@c0mput3r5c13nt15t c0mput3r5c13nt15t changed the title Array input values [Feature] Array input values Sep 1, 2022
@diogob diogob added the enhancement New feature or request label Nov 10, 2022
@armandabric
Copy link

I just get caught by this missing feature. What could we do to start make it work? I could try to help on this.

@c0mput3r5c13nt15t
Copy link
Author

c0mput3r5c13nt15t commented Jan 14, 2023

I don't know if you saw, but a while ago I already thought about how to implement something like that and also created a prototype version (see here), but in the end it just didn't feel right.

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

No branches or pull requests

3 participants