Submit only Registered field
See original GitHub issueHi, Is there an option to submit only values from registered fields?
I have a form which I initialize with data from my rest api. All the data from my API goes to the values
as my form values event if I didn’t register all the field, then after submission I receive all the data in the handleSubmit
method. is it possible to filter only values from field which was registered (i.e. in the form )?
Thank you
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Submit only Registered field · Issue #2368 · redux ... - GitHub
Hi, Is there an option to submit only values from registered fields? I have a form which I initialize with data from my...
Read more >redux-form how to submit all registered fields - Stack Overflow
Ideally I'd be able to set some options to just submit the value of all registered fields, but that doesn't exist.
Read more >My form is able to be submitted without required fields being ...
I am receiving for submissions from my "clone daystar registration" form and the requied fields are not filled in. I thought that the...
Read more >Creating Custom Registration Fields - iThemes Help Center
This tutorial will walk you through how to add custom fields to these pages: Membership registration form [register_form]; Front-facing profile editor ...
Read more >Submitting Team Entries for a Track & Field Meet
Overview · Accessing the Meet Registration Page · Entering Individual Athletes. By Event; Register by Event Sample; By Athlete; Register by Athlete Sample....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I know this is an old post, but I thought I’d post a solution to this problem.
I solved this by selecting
registeredFields
from the form state, and piping the field names into aformValueSelector
. The only thing I dislike about this solution is having to maintain thegetRegisteredFields
selector myself, as it will break if and when you decide to change the internal structure of the Redux Form state. Having the library provide this selector would be a good thing.@davepacifico Yes, like I said, that’s the only drawback with the solution as far as I can see. I don’t see a good reason why the library shouldn’t export this selector. If I can find the time I’ll whip together a PR.