title: Custom Formik validation for input text field based on onBlur of other field
body: <p>I have text field called A which is not mandatory. If user enters some value to A field and trying to without entering any value to B field which is dependent on A field, a validation message should be fired.</p>
  
  <pre><code>   &lt;Field.Input
              name={field.name}
              error={Boolean(validationMessage)}
              defaultValue={field.value}
              onBlur={(e) =&gt; {
                field.name === 'Name'
                  ? e.target.value
                    ? (form.setFieldValue(field.name, error),
                      form.setFieldTouched(field.name))
                    : (form.setFieldValue(field.name, e.target.value), form.setFieldTouched(field.name))
                  : form.setFieldValue(field.name, e.target.value)
                form.setFieldTouched(field.name)
              }}
            /&gt;
  </code></pre>