Replies: 1 comment 1 reply
-
|
I think you put so many feature requests in one post, which makes it hard to discuss in one thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I built a similar thing in one of my projects—these are the issues that I encountered:
Sometimes I want to group the form elements, like:
But all these in the same form.
Instead of making it a form that works with
button type="submit", I prefer a click event (via ref or anything), because in some scenarios the form can be inside some other form (e.g., if you want to add a category within the same form—i.e., you import it in a sheet or popup, etc.—then one submit triggers multiple forms).I prefer the form to use a grid layout, i.e., how much input takes how much space. Suppose on the left side 3 inputs in 3 rows, and on the right 1 description which is taking 3 rows.
Also, it would be great if we get a submit ref outside so we can pass it somewhere else in the page or layout (via Zustand, etc.) so we can trigger the event anywhere.
Also, it'd be great if we get a "has unsaved changes" option, for each input has its own submit button, etc.
Pass object in params (which contain element, type, its custom CSS classes if needed, placing, etc.).
Currently, I think these are the major issues which make FormCN's use case limited in my website, because currently I am looking to use this in my website.
If these changes are there, it'll be my only form that I'll use.
I am open to discuss how these changes can be implemented. Also, I'd love to contribute if you have any of these changes based on priority in this FormCN.
Let me know @Ali-Hussein-dev!
Beta Was this translation helpful? Give feedback.
All reactions