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

Writing a todo list form #446

Open
muhmud opened this issue Oct 31, 2024 · 0 comments
Open

Writing a todo list form #446

muhmud opened this issue Oct 31, 2024 · 0 comments
Labels
enhancement New feature or request input question Further information is requested select

Comments

@muhmud
Copy link

muhmud commented Oct 31, 2024

Is your feature request related to a problem? Please describe.
I'm trying to write a simple todo list form, with a select above, and an input below. I would like to have the input focused when the form group loads, but haven't been able to achieve this, after much effort.

I would also like to customize the behaviour that occurs when I press enter on the input, so that it adds the item to the todo list and keeps the form alive. I can achieve this by reloading the form, and this is mostly OK, but it would be nice to have more control over this.

Describe the solution you'd like

  • You should be able to choose which field of a group has focus when a group is loaded
  • You should be able to control whether submit actually submits or whether the submit is cancelled

Describe alternatives you've considered
I've tried to call Update() on a group directly with NextField() to try to get it to move to the next field, which works, but the select shows the message Loading...

Additional context
Seems like this kind of thing should be simple to achieve

@caarlos0 caarlos0 added enhancement New feature or request input question Further information is requested select labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request input question Further information is requested select
Projects
None yet
Development

No branches or pull requests

2 participants