{"action":"closed","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/347","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/347/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/347/events","html_url":"https://github.com/erikras/redux-form/issues/347","id":119466697,"number":347,"title":"Generating form values","user":{"login":"jonathanasquier","id":781447,"avatar_url":"https://avatars.githubusercontent.com/u/781447?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanasquier","html_url":"https://github.com/jonathanasquier","followers_url":"https://api.github.com/users/jonathanasquier/followers","following_url":"https://api.github.com/users/jonathanasquier/following{/other_user}","gists_url":"https://api.github.com/users/jonathanasquier/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanasquier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanasquier/subscriptions","organizations_url":"https://api.github.com/users/jonathanasquier/orgs","repos_url":"https://api.github.com/users/jonathanasquier/repos","events_url":"https://api.github.com/users/jonathanasquier/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanasquier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-30T10:45:12Z","updated_at":"2015-12-03T08:57:20Z","closed_at":"2015-12-03T08:57:20Z","body":"Hey, I have a password field and a \"generate random\" button next to it.\r\nI tried 2 things :\r\n1)\r\n`this.props.password.value = this.props.newuser.password;`\r\n(newuser is not a redux form generated state, but mine which contains only the password field, to be in the redux flow on button click);\r\nthis populates the form field but the state stays empty, until I focus the field for example. \r\n2)\r\n    ```state => ({\r\n        initialValues: state.newuser\r\n    })```\r\nWhich works for the password, but obviously empties the rest of the form state.\r\nHow could I get the best of both worlds? Is there a way to compute new initial values based on the current form state?\r\n\r\nThanks!"}}