Does redux-form field value can hold object instead of just a string?
Consider following example
class SelectQuestions extends Component{
I think the better way to achieve that is to create two virtual fields selectedQuestionId and selectedQuestionName. Those fields are not to display. Then, each SelectQuestion can trigger a callback like:
setSelectedQuestion = (event) => {
var questionName = event.target.name; //or something like that
var questionId = event.target.id; //or something like that
this.props.fields.selectedQuestionName.onChange(questionName );
this.props.fields.selectedQuestionId.onChange(questionId );
}
onChange can be called on redux-form fields to programmatically set the value.