I have a handler on my button, in which I need to get the form values, validate them and if everything is fine, send a post request.
onMyClick() { const {store} = this.context; const state = store.getState(); let data = getFormValues('form-id')(state); // получаем значения формы data.is_draft = true; let errors = validate(data); //моя функция валидации this.handleFormSubmit(data); // функция отправки данных на сервер } The problem is that if the errors are non-empty, then we must somehow highlight the fields on the form. It all works automatically for the button type, but how to do it manually? What method redux form need to call?