Change field values of a dynamically named form using the reducer plugin
See original GitHub issueI would like to clear the values of dynamically named forms using the reducer plugin. Is there a good way to do this? It seems that with the current API you need to know your form name in order to make changes because the plugin expects an object with keys being form names. Ideally, it would be something like this:
export default formReducer.plugin((state, { type, payload: {formName}}) => {
switch (type) {
case CLEAR_FORM: {
const newState = { ...state }
newState[formName].values = undefined
return newState
}
default:
return state
}
`})`
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Change field values of a dynamically named form using the ...
I would like to clear the values of dynamically named forms using the reducer plugin. Is there a good way to do this?...
Read more >Using redux-form reducer.plugin() with dynamically generated ...
Is there a why I can use this with dynamically named forms. Many thanks export const formPlugin = { foo: (state = {},...
Read more >Add and Remove Form fields dynamically with React and ...
Step 1: Create a form with inputs name and email. ... This function is used to set input field values based on an...
Read more >How to Create Dynamic Forms in WordPress - YouTube
Stop duplicating your efforts, or making your forms unnecessarily long! With Formidable Forms, you can make dynamic forms quickly and easily ...
Read more >Adding Contact Form 7 Hidden Fields With Dynamic Data
I recommend you use a descriptive name for the Name field so that ... Then in the Value field you can enter a...
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
Please reopen the issue, it’s very important.
Because this issue saw almost no activity for a few months, I’m closing it.